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
And the reason toFixed() breaks on numbers like this is because JS only supports 53 bit integers which 300000000000020000 is larger than. See more info on this here: http://2ality.com/2012/07/large-integers.html.
Ideally we would want to find a patch for this that doesn't break rounding for imprecise floating points (which appears to be the reason toFixed() was added to this line here:
See here:
Upon further investigation, this is actually a problem with javascript's
toFixed()
function used byi18n-js
here:i18n-js/app/assets/javascripts/i18n.js
Line 48 in 6431b92
And the reason
toFixed()
breaks on numbers like this is because JS only supports 53 bit integers which300000000000020000
is larger than. See more info on this here: http://2ality.com/2012/07/large-integers.html.Ideally we would want to find a patch for this that doesn't break rounding for imprecise floating points (which appears to be the reason
toFixed()
was added to this line here:i18n-js/app/assets/javascripts/i18n.js
Line 48 in 6431b92
Not as ideally we could add a disclaimer for this known issue instead or in the meantime. I'm happy to help in any way I can on this!
The text was updated successfully, but these errors were encountered: