You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
separate formatToPrecision into formatToPrecision and formatToScientificNotation;
formatToScientificNotation must have a flag useNormalNotation. Normal notation in a scientific number means we have 1 digit that is between in range [1,9] that is to the left side of the separator.
setting useNormalNotation to false will consider the formattingDecimals value that we have now. useNormalNotation set to true will ignore formattingDecimals.
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: