Open hdoan741 opened 11 months ago
It seems the parser is incorrect when parsing fractional number:
> jsbi({useNativeBigInt: true}).parse('-0.3333333333333333') Uncaught SyntaxError: Cannot convert -0.3333333333333333 to a BigInt
I don't think this is an error. You can't parse a decimal into a bigint in JS. You should probably only be using useNativeBigInt: true if you're 100% sure that your payload won't have decimals in it.
useNativeBigInt: true
It seems the parser is incorrect when parsing fractional number: