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
Hello, currently the precision parameter means the number of digitis after the decimal point but sometimes one want the number of digits to be the precision.
For example, the number 12.345 (1.2345e1) with three digits precision means 12.3 (1.23e1) but the number 1.2345 with three digits precision means 1.23 (1.23e0), one could call it a relative precision. It simple terms, one turns the number in scientific notation then take n digits.
In order to not break with older versions, I suggest to accept a new parameter like digits=3 (mutally exclusive with precision, ie. raises an error if both parameters are given) or def a new function where precision has a diferent meaning.
The text was updated successfully, but these errors were encountered:
You may want to consider specifying the number format through the Python format string rather than through a separate precision parameter. That would provide more flexibility and may address this issue. For example see: hnei@5fd56ba
Hello, currently the
precision
parameter means the number of digitis after the decimal point but sometimes one want the number of digits to be the precision.For example, the number 12.345 (1.2345e1) with three digits precision means 12.3 (1.23e1) but the number 1.2345 with three digits precision means 1.23 (1.23e0), one could call it a relative precision. It simple terms, one turns the number in scientific notation then take
n
digits.In order to not break with older versions, I suggest to accept a new parameter like
digits=3
(mutally exclusive with precision, ie. raises an error if both parameters are given) or def a new function where precision has a diferent meaning.The text was updated successfully, but these errors were encountered: