Closed SeedyROM closed 4 years ago
Certain strings given to the BigNumber constructor do not get accurately converted.
> const x = new BigNumber('1312581780427512882148') undefined > x BigNumber { s: 1, e: 21, c: [ 13125817, 80427512882148 ] } > x.toString() '1.312581780427512882148e+21'
Was looking for toFixed duhhhh.
toFixed
Certain strings given to the BigNumber constructor do not get accurately converted.
Info
Example