I created a system that parses a compact string of data in JSON. I use a 19-digit number to store identifiers. Unfortunately, any number greater than 17 digits, parseFloat() rounds the last few digits.
This breaks the entire row of data. Can i fix this?
For example, 8246295522085275215 turns into 8246295522085276000 . Why is this?
http://jsfiddle.net/RobertWHurst/mhZ7Q/
javascript math parsefloat
Robert Hurst
source share