Skip to content

Instantly share code, notes, and snippets.

@madrobby
Created January 17, 2013 15:15
Show Gist options
  • Save madrobby/4556637 to your computer and use it in GitHub Desktop.
Save madrobby/4556637 to your computer and use it in GitHub Desktop.
$ irb
irb(main):001:0> 10000000000000000 == 10000000000000001
=> false
$ node
> 10000000000000000 == 10000000000000001
true
@jwarchol
Copy link

JS stores numbers as floating point values only, no true integers, and only 53 bits precision for the left side of the decimal (I think).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment