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

Error with numbers above Number.MAX_SAFE_INTEGER #61

Open
adamschachne opened this issue Nov 15, 2018 · 0 comments
Open

Error with numbers above Number.MAX_SAFE_INTEGER #61

adamschachne opened this issue Nov 15, 2018 · 0 comments

Comments

@adamschachne
Copy link

There is a loss of precision when converting numbers above Number.MAX_SAFE_INTEGER (9007199254740991).

writtenNumber(100000000000000002); 
// => 'one hundred quadrillion'

writtenNumber(100000000000000039); 
// => 'one hundred quadrillion thirty-two' ??

It would nice to be able to safely convert numbers above this limit.

@adamschachne adamschachne changed the title Written numbers above Number.MAX_SAFE_INTEGER Error with numbers above Number.MAX_SAFE_INTEGER Nov 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants