Friday, February 2, 2018

Re: Eclipse (neon) with the GWT app translates the Java code of Paul Falstad's electronic simulator into JavaScript

Am Freitag, 2. Februar 2018 17:55:50 UTC+1 schrieb Michael Joyner:

I wonder if it might be related to using Java float or double in the math code, javascript numbers don't exactly match up.

Well both Java and JavaScript use 64bit IEEE 754 so when using float / double in Java and numbers in JS it should be the same. The only difference is that Java has integer math while JavaScript has not so in Java you have 1/4 = 0 and in JS 1/4 = 0.25 but that is something GWT takes care of.

If latest GWT 2.8.2 and using -draftCompile still has the issue then maybe some bug has sneaked into the code while moving it to GWT.

-- J.

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
To post to this group, send email to
Visit this group at
For more options, visit

No comments:

Post a Comment