Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Parsing a value which is more than 15 digits using javascript

Hi,

I am trying to parse a string that is more than 15 digits using Javascript. I see the max digits allowed in javascript is only 15. is there any other way to pasre it ?

the customerID is 18 digits and i need to retreive that from a payload and pass it along to service callout.

the last 3 digits are added as 000 if i use toString() or its getting converted to 1.e17 if i use it as number.

TIA

Aswin.

0 1 1,034
1 REPLY 1