javascript - Converting big number string to number -


what way can convert string 16 digits , 2 fraction value number ?

currently when try convert number('1234567890123456.12') became 1234567890123456. fraction values gone.

i want confirm without using third party lib can convert string number ?

unfortunately not. javascript represents it's numbers using double precision floating point numbers. @ 16 digits, able store integer component , not part after decimal point. need bignum library use value.

edit: reference biggest integer can use in javascript 9,007,199,254,740,991

edit2: jeremy can use library bignumberjs.


Comments

Popular posts from this blog

PHP and MySQL WP -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

go - golang pprof for c library code -