Last active
July 15, 2016 04:29
-
-
Save kazuho/7e72372111fa0655692d9e44be70c7ea to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ node -v | |
v6.2.1 | |
$ node -e 'console.log(JSON.parse("[0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100e400]"))' | |
[ 100 ] | |
$ ruby -v | |
ruby 2.0.0p648 (2015-12-16 revision 53162) [universal.x86_64-darwin15] | |
$ ruby -r JSON -e 'p JSON.parse("[0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100e400]")' | |
[0.0] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Same issue exists with smaller exponent: