or... i dunno, argue with brendanhttps://twitter.com/brendaneich/status/526826278377099264?lang=en …
Yes, my point is that BigInt's conversion (once relaxed; the standard got changed recently to allow converting floating-point integers >2^53) proves that the real underlying integer behind the float value is 4611686018427387904, not 4611686018427388000.
-
-
You can also get the right answer from toFixed(0) instead of toString():pic.twitter.com/6fNi1jj3rk
-
i had missed that trick. wtf. lol
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.