A Javascript numerical library to represent numbers as large as 10^^1e308 and as small as 10^-10^^1e308. Sequel to break_infinity.js, designed for incremental games.
MIT License
122
stars
46
forks
source link
x.pow(y) ignore x's sign when y is non-integer #43
Expected result:
new Decimal(-9).pow(1.5).toString() "NaN"
Actual result:new Decimal(-9).pow(1.5).toString() "27.000000000000004"