Monday, April 28, 2025

Re: IEEE 754 mode for Java

If your solution relies on absolute accuracy across different languages and machines but you're using floating point I'd say you are setting yourself up for some major heartache and issues. Even with IEEE 754, and supposedly strict rules on rounding I wouldn't trust the fidelity across machines. Do you really need to do the math both on the server in Java and in the browser? Pick one and use that maybe. Or, if you need complete fidelity, use something other than floating point - integer arithmetic or maybe BigDecimal on the server.

On Sunday, 27 April 2025 at 13:39:06 UTC+1 Thomas Broyer wrote:
On Sunday, April 27, 2025 at 2:06:11 AM UTC+2 ma...@craig-mitchell.com wrote:
I asked AI about my problem, and it told me it was due to Java not following the IEEE 754 standard and I have to expect inconsistant results.  However, I don't know if that's correct.  There are people saying Java does follow IEEE 754 and others that say it doesn't.

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/google-web-toolkit/1f66e243-2d95-475e-8fcc-cc86ef0ec1e5n%40googlegroups.com.

No comments:

Post a Comment