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
toPrecision outputs the wrong values for some inputs. The function considers the leading "0" in a decimal number to be a significant digit, which it is not.
For example: The toPrecision function is wrong for decimal inputs like 0.222:
Ex:
toPrecision(0.222,2)// 0.2
Instead, it should be
toPrecision(0.222,2)// 0.22
The text was updated successfully, but these errors were encountered:
toPrecision outputs the wrong values for some inputs. The function considers the leading "0" in a decimal number to be a significant digit, which it is not.
For example: The
toPrecision
function is wrong for decimal inputs like0.222
:Ex:
Instead, it should be
The text was updated successfully, but these errors were encountered: