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
Currently (release 0.5.7), attempting to convert a BigInt value to OmegaNum will return either NaN if the BigInt is being passed in directly or Infinity if the BigInt (whose value is bigger than 21024) is converted to a string which is then passed into the OmegaNum constructor.
The test works as expected in all four cases in both OmegaNum.js and ExpantaNum.js.
Even a string solely consisting of a million 1 digits converts properly (up to precision limitations).
For similar effect, I can construct a BigInt whose value is 9n ** 1048576n and pass it into the OmegaNum (or ExpantaNum) constructor and it will still work and give the expected output (6.216956799074759e1000595).
Currently (release 0.5.7), attempting to convert a BigInt value to OmegaNum will return either
NaN
if the BigInt is being passed in directly orInfinity
if the BigInt (whose value is bigger than 21024) is converted to a string which is then passed into the OmegaNum constructor.The expected output should be 1234 for the
1234n
test case and approximately 2.958112e371 for the2n**1234n
test case.The text was updated successfully, but these errors were encountered: