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
When you format a number that would be expressed using exponential notation by javascript and the base has a decimal part the decimals and the exponent is prepended to the original number.
Sugar.Number.format(10000000000000000000000, 2) => "1e+22" which is expected, but Sugar.Number.format(12000000000000000000000, 2) => "1.2e+22.2e+22" should just be "1.2e+22"
The text was updated successfully, but these errors were encountered:
When you format a number that would be expressed using exponential notation by javascript and the base has a decimal part the decimals and the exponent is prepended to the original number.
Sugar.Number.format(10000000000000000000000, 2) => "1e+22"
which is expected, butSugar.Number.format(12000000000000000000000, 2) => "1.2e+22.2e+22"
should just be"1.2e+22"
The text was updated successfully, but these errors were encountered: