BigDecimal to double value distorted [closed]
Closed 2 days ago.
BigDecimal rounding precision
We have inbuilt rounding capability for BigDecimal in java already. My requirement is a little different. Examples:
BigDecimal randomBigDecimal = 17,575.75
Let’s say I have Rounding Treatment of types – Round Up, Round Down, No Rounding
Rounding Precision types are as well – 1000, 100, 10, 1, 0.1, 0.01