I have some code that does millions of chained multiplications and 
divisions with doubles.

When I compile the code with GWT to Javascript, I get consistent results, 
no matter what the browser.  I believe this is because Javascript follows 
the IEEE 754 standard.

However, running the same code in Java does not get consistent results. 
 Not only are the results different from Javascript, they are different 
based on how I run the tests.  Ie: Running from IntelliJ's JUnit runner vs 
running with "mvn test" gives different results.

I would like the results from Java to match the results from JavaScript 
(follow the IEEE 754 standard).

I'm on Windows, running Java Temurin 21.0.5 64-Bit.

Has anyone else faced this problem?  Any ideas for a solution?

-- 
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+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/google-web-toolkit/fde958f6-b9d7-4ff3-8c43-59c8cf0214cbn%40googlegroups.com.

Reply via email to