Closed Soni-Goyal closed 3 years ago
It's not an issue with this library.
Number(69673776659654677224) // 69673776659654680000
Basically, you need to put quotes around the values before you parse them.
See, for example, parse json with large numbers or convert an extra large number to string in json etc.
Thanks its working using JSON.stringify replace method
My data is coming from third party API in node and this data contains an id of number type whose number of digits are 20(69673776659654677224). They don't provide any string format.
After trying this library, my last digit is still truncated when i try to do new BigNumber(id).toFixed() Hence doesn't provide correct id to me
Can someone please help how to handle it ?