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

toFixed does not play well with long decimal values. #233

Open
eddieddy opened this issue Nov 14, 2022 · 0 comments
Open

toFixed does not play well with long decimal values. #233

eddieddy opened this issue Nov 14, 2022 · 0 comments

Comments

@eddieddy
Copy link

If a long decimal is passed in, javascript already uses Exponential Form. We are getting NAN when passing in: "-0.00000000000000000000003" which is then automatically converted to -3e-23 by javaScript. There is no check before trying to create the exponentialForm on line 219.

image

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