On Thu, 5 May 2022 14:32:36 GMT, Raffaello Giulietti <d...@openjdk.java.net> 
wrote:

> So, what is the use case or the rationale for throwing on -0.0?

Rationale: It loses information.  It truncates the sign, so the value can't be 
round-tripped.  I think it would be the only lossy transformation permitted by 
the `to*Exact` methods?

Use case: None.  I haven't worked on a program where -0.0 -> OL -> +0.0 would 
have caused me a problem.

-------------

PR: https://git.openjdk.java.net/jdk/pull/8548

Reply via email to