Closed bdtren closed 2 years ago
A few issues with this:
parseInt
only works for numbers small enough to be represented by a native Javascript number, so this does not support larger numbers, which defeats the point of a big integer library.bigInt("0xfabb98", 36)
.
This is for fixing issue https://github.com/peterolson/BigInteger.js/issues/205#issue-602199428 My approach is convert src data(whenever it is
number
orstring
), compare it with prefixes( '0x' '0b' '0o') And use built in functionparseInt()
to convert it.