I want to round a big number to the nearest integer:
Ex1:-26,687,872,856,567,000.32
, output should be:-26,687,872,856,567,000
Ex2:-26,687,872,856,567,000.51
, output should be:-26,687,872,856,567,001
I am using this expression in jasper report:
Math.round($V(cost})
and have set $V{cost}
, both as java.lang.Float
and java.lang.Double
, but I'm not getting correct results. With Float it displays 2147483647
.