How to round of Numbers in jasper

0

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

Thanks,

santosh.audi19's picture
Joined: Sep 9 2015 - 9:58am
Last seen: 1 year 1 month ago

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

santosh.audi19 - 3 years 10 months ago

0 Answers:

No answers yet
Feedback
randomness