Comment on 8260692: Matematically wrong implementations of RoundingMode.HALF_UP and .HALF_DOWN

Raffaello Giulietti raffaello.giulietti at gmail.com
Mon Feb 1 16:10:10 UTC 2021


Hi,

in my opinion, and contrary to the report [1], the described issue is 
not a bug.

While the wording used in the spec of java.math.RoundingMode could be 
improved, it is nonetheless clear enough to avoid any confusion about 
what HALF_DOWN and HALF_UP mean in this context. The actual values 
reported are all correct while the expected ones are not.

I think the issue can be closed as not relevant.


Greetings
Raffaello

----

[1] https://bugs.openjdk.java.net/browse/JDK-8260692


More information about the core-libs-dev mailing list