Converting big number string to number

Viewed 14497

What way i can convert string with 16 digits and 2 fraction value to number ?

Currently when I try to convert Number('1234567890123456.12') will became to 1234567890123456. fraction values will be gone.

I just want to confirm without using any third party lib can i convert this string to number ?

3 Answers

I have faced issue to convert 18 digit string number to number. It is convert all digit to 0 after 16 digit. I have apply below code. it is working fine for me.

[{"id":${id},"name":"${name}"}]

Related