finput icon indicating copy to clipboard operation
finput copied to clipboard

Fix Number(...) rounding errors

Open ryanggrey opened this issue 8 years ago • 0 comments

We use the Number(...) constructor in a few places. Wrapping a string in the number constructor is going to cause rounding errors for values above Number.MAX_SAFE_INTEGER: Number("9007199254740991.45") will result in 9007199254740991.

ryanggrey avatar Jul 07 '17 10:07 ryanggrey