Open dappelt opened 6 years ago
bignum() does not instantiate very large integers (>= 1e+308) as expected:
bignum(1e+307).toNumber() === 1e+307 // expected bignum(1e+308).toNumber() === 0 // unexpected
Instantiate a bignum object for very large integers as expected or throw an error if the argument passed to bignum() exceeds a threshold.
bignum()
Observed Behaviour
bignum() does not instantiate very large integers (>= 1e+308) as expected:
Expected Behaviour
Instantiate a bignum object for very large integers as expected or throw an error if the argument passed to
bignum()
exceeds a threshold.Version Info