yeah, you can, and you can also get rounding errors based entirely on the engine... you can't do that in production, so most don't consider it an option
Sadly there seems to be no way to get the true decimal integer representation of 1.7976931348623157e+308 without BigInt, because toFixed/toPrecision are limited to 100 digits, so we'll have to wait until Chrome is updated with the new spec. In the meantime, Python can do it.pic.twitter.com/dPcVjcOCCa
-
-
toString is interesting for numbers http://es5.github.io/#x9.8.1
-
Yes, the big fuckup in that algorithm is the "21" threshold and logic in point 6. It should be set up so that as soon as the number is > 2^53, it breaks into point 9 and switches to e-notation, making it clear that we're past the safe integer threshold.
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.