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
The issue arises because the smallest number representable in plain notation with 4 digits is 1e-4, but scientific notation (i.e., the one with e) is used only below 2e-5.
I would suggest setting the default value for digits to at least 5, or enforce that scientific notation is used as soon as the number is below 10^-digits
Curiously, by the way, the problem does not arise here:
The default parameter
digits=4
can cause quite unexpected behaviour.In the following example, we lose 2e-5, which is made zero, while both the larger and smaller numbers stay intact.
This here is also maybe not what one would expect:
The issue arises because the smallest number representable in plain notation with 4 digits is 1e-4, but scientific notation (i.e., the one with
e
) is used only below 2e-5.I would suggest setting the default value for
digits
to at least 5, or enforce that scientific notation is used as soon as the number is below10^-digits
Curiously, by the way, the problem does not arise here:
The text was updated successfully, but these errors were encountered: