Hi
Javascript has some serious problems when working with floating numbers.
>
Javascript has no serious problems when working with floating numbers
> Like if you enter the following into a javascript in any browser : 7.3 - 7
>
There is not such number 7.3 in floating point.
> These will all give the result : 0.2999999999999998
>
This is a string, not the result of "-" operation.
Which problem ?
> This problems is also visible in GWT :
>
> int test = 7;
> double dTest = 7.3;
> double result = dTest - test;
> GWT.log("test result = " + result);
>
> will also print out 0.2999999999999998
>
Again, there is not such number 7.3 in double precision.
> How does one avoid these problems in GWT, so that you can trust on the
> results you receive when calculating with floating point numbers ?
>
Which problems ?
--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.