In JDK 1.7, Decimalformat(0.00).format(0.045) gives the output 0.05
In JDK 1.8, Decimalformat(0.00).format(0.045) gives the output 0.04
Please let me know why there is a rounding issue to 2 decimal places. Which one is correct?
In JDK 1.7, Decimalformat(0.00).format(0.045) gives the output 0.05
In JDK 1.8, Decimalformat(0.00).format(0.045) gives the output 0.04
Please let me know why there is a rounding issue to 2 decimal places. Which one is correct?