Number Displays In Scientific Notation
I am getting a json response back with my data but when I am trying to use one of the values (number) the response is converting to scientific notation. I never encountered somethi
Solution 1:
Unlike python and ruby, Javascript doesn't support arbitrary precision integers. The maximal numeric value that can be exactly represented in JS is 9007199254740991
. Bigger numbers have an approximate representation and are converted to strings using scientific notation.
The only way to avoid that in your case is to encode IDs as strings in JSON:
"doctorid":"2015031216033174968087"
Post a Comment for "Number Displays In Scientific Notation"