Large Decimal in Column

Large Decimal in Column

dageezahdageezah Posts: 1Questions: 1Answers: 0

I have an ID returning from an ajax call.... The JSON data coming in looks fine, but then the data in the column is displaying
1.0072101200000002e+23 instead of 100721012000000028180956

Please how do I fix this (I looked at .toFixed() but that only supports up to 20 digits) and anything that is called in mRender truncates the number to 1007210120000000281

Answers

  • allanallan Posts: 61,726Questions: 1Answers: 10,110 Site admin

    I think that you'll need to have it as a string in your JSON. Javascript numbers are IEEE 754 and thus are limited in precision for large numbers.

    Allan

This discussion has been closed.