Created
August 5, 2019 11:21
-
-
Save indreklasn/a9e51987c57274a07b81230dfc76c35d to your computer and use it in GitHub Desktop.
This file contains hidden or 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
const x = Number.MAX_SAFE_INTEGER; | |
// ↪ 9007199254740991, this is 1 less than 2^53 | |
const y = x + 1; | |
// ↪ 9007199254740992, ok, checks out | |
const z = x + 2 | |
// ↪ 9007199254740992, wait, that’s the same as above! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment