-
Notifications
You must be signed in to change notification settings - Fork 437
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
Utilities.formatToPrecision has wrong output for scientific notation #778
Labels
bug
Something isn't working
Comments
To resolve that I suggest the following:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What happened?
Calling
Utilities.formatToPrecision(..., fallbackToScientific: true)
outputs a wrong value for some inputs.What are the steps to reproduce?
What is the expected behavior?
Value in
formatted
from the example above should be1e20
but it's0e-18
instead.What is the error thrown?
What's the stack trace said?
OS version
Library version
3.1.1
The text was updated successfully, but these errors were encountered: