double -> int workaround for BigDouble DB2 issues