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
Reproduction Steps: ExpantaNum.ZERO.toStringWithDecimalPlaces(3,true)
raises the following error:
Uncaught RangeError: toFixed() digits argument must be between 0 and 100
at Number.toFixed (<anonymous>)
at decimalPlaces (eval at <anonymous> (test.js:102:12), <anonymous>:1213:31)
at P.toStringWithDecimalPlaces (eval at <anonymous> (test.js:102:12), <anonymous>:1250:28)
at <anonymous>:1:17
Can reproduce the error when running new ExpantaNum(x).toStringWithDecimalPlaces(y,true), where x is any value that, after division by 10y, results in a number less than or equal to 10-100.
In particular, new ExpantaNum(1e-97).toStringWithDecimalPlaces(3,true) raises the same error, and so does new ExpantaNum(1e-96).toStringWithDecimalPlaces(4,true).
Reproduction Steps:
ExpantaNum.ZERO.toStringWithDecimalPlaces(3,true)
raises the following error:
This works in the console on https://naruyoko.github.io/ExpantaNum.js/test.html, and also still errors when replacing
3
with any other integer.The text was updated successfully, but these errors were encountered: