Skip to content

Instantly share code, notes, and snippets.

@shisama shisama/BigInt.js
Created Nov 28, 2019

Embed
What would you like to do?
console.log(2 ** 53)
// 9007199254740992
console.log(2 ** 53 + 1)
// 9007199254740992
console.log(2n ** 53n + 1n)
// 9007199254740993n
console.log(2n ** 53n * 1000n)
// 9007199254740992000n
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.