fmod(): toFixed() digits argument must be between 0 and 100
dekairi opened this issue · comments
fmod(10, 1)
causes the error:
Uncaught RangeError: toFixed() digits argument must be between 0 and 100
Possible solution:
else {
return parseFloat(tmp2.toFixed(Math.abs(p))); // instead of (toFixed(-p))
}