import BigNumber from "bignumber.js";
console.log(new BigNumber(0).exponentiatedBy('-123456789012345').toString()) // Returns Infinity (ok).
console.log(new BigNumber(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.
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.