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

Joe Darcy joe.darcy at oracle.com
Mon Feb 1 17:47:47 UTC 2021


Hi Raffaello,

I agree with your analysis and closed the bug noting some additional 
history.

Cheers,

-Joe

On 2/1/2021 8:10 AM, Raffaello Giulietti wrote:
> 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