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
importBigNumberfrom"bignumber.js";console.log(newBigNumber(0).exponentiatedBy('-123456789012345').toString())// Returns Infinity (ok).console.log(newBigNumber(0).exponentiatedBy('-12345678901234567890123456789012345678901234567890').toString())// Returns 0 (seems like not ok).
It seems to me, that this behavior is somewhat inconsistent and zero raised to power of negative number should return Infinity independent from power's length.
The text was updated successfully, but these errors were encountered:
Repro steps:
It seems to me, that this behavior is somewhat inconsistent and zero raised to power of negative number should return Infinity independent from power's length.
The text was updated successfully, but these errors were encountered: