You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In some rare cases the function new Integer((int) value) in the toNumber(double
value) function works wrong.
When I debug it, I got 2.999999 for the value and when you simple cast it to
(int) it will be 2.
Instead, I changed the line into this and it works very good.
return new Integer((int) Math.round(value));
Original issue reported on code.google.com by [email protected] on 13 Mar 2014 at 12:34
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
[email protected]
on 13 Mar 2014 at 12:34The text was updated successfully, but these errors were encountered: