0
When converting a number into decimal string format to the numeric value, I get the wrong number:
parseInt("36428971654192132")
// 36428971654192130
0
When converting a number into decimal string format to the numeric value, I get the wrong number:
parseInt("36428971654192132")
// 36428971654192130
2
According to Javascript.info, the guy number
cannot correctly represent integers larger than 2^53-1
, or 9,007,199,254,740,991.
Comparing:
Try to use Bigint:
BigInt("36428971654192132");
Browser other questions tagged javascript
You are not signed in. Login or sign up in order to post.