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

toPrecision rounding quirks #24

Open
webdesserts opened this issue Feb 1, 2015 · 0 comments
Open

toPrecision rounding quirks #24

webdesserts opened this issue Feb 1, 2015 · 0 comments

Comments

@webdesserts
Copy link
Owner

Rounding is currently not working as I originally expected. When dealing with larger floats that happen to be simple enough, toPrecision will store them in scientific notation.

0.0000000001.toPrecision(4) //=>1.000e-10

I need to decide if this is expected behavior or not and if not, how to solve it.

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