How to round of Numbers in jasper


I'm using following method to round of numbers but im still unable to round them completely
"Total Quality :"+ new BigDecimal(($V{Total Quality}.doubleValue()/$V{Calc}.doubleValue() )*100).setScale(1, RoundingMode.UP)  +"%"
If my result is 87.81 % I should make it to 88.0%
Could you please help me out in achieving it


santosh.audi19's picture
Joined: Sep 9 2015 - 9:58am
Last seen: 2 years 3 weeks ago

Suppose if the result is 93.5 it should round up to 94

santosh.audi19 - 4 years 9 months ago

0 Answers:

No answers yet