sothqamb
3 years agoOccasional Contributor
What datatype to use for integers of size 10^18
My TC Project is using JavaScript and I am trying to retrieve the ID number with a magnitude of 10^18 from a database. I have not had any luck since the MAX_SAFE_INTEGER is round 9*10^15. Is there any inbuilt datatypes like BigInt available to store the ID's, and if not, how would you import a library to do so?