Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inaccuracies with large numbers (e.g. 1e36) #3

Open
beaugunderson opened this issue Mar 22, 2021 · 0 comments
Open

Inaccuracies with large numbers (e.g. 1e36) #3

beaugunderson opened this issue Mar 22, 2021 · 0 comments

Comments

@beaugunderson
Copy link

Using anything larger than 1e15 as a literal in JavaScript can result in inaccuracies... Currently 1e36 is used as a literal in this codebase, you can see it's not exactly what you expect:

> BigInt(1e36)
1000000000000000042420637374017961984n
> 10n ** 36n
1000000000000000000000000000000000000n
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant