Possibly an issue with Java 8.
The unit test fails when using JDK 1.8. 12.345 should be rounded to 12.34 but is rounded to 12.35 instead.
At first I thought the default rounding mode had been changed, but even setting it explicitly did not resolve the issue.
Not sure of the impact, but it is a little troubling that the same input could give different output based on whether you are using Java 8 or Java 7 to run the program.
Possibly an issue with Java 8.
The unit test fails when using JDK 1.8.
12.345should be rounded to12.34but is rounded to12.35instead.At first I thought the default rounding mode had been changed, but even setting it explicitly did not resolve the issue.
Not sure of the impact, but it is a little troubling that the same input could give different output based on whether you are using Java 8 or Java 7 to run the program.