Javascript how to convert string to uint64 type

前端 未结 1 421
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-28 15:02

Javascript how to convert string to uint64 type , in c language i know as below solution:

char*[]=\"00\";
uint64_t value;
memcpy(&value, chars, 8);
printf(\'         


        
相关标签:
1条回答
  • 2021-01-28 15:45

    Javascript Numbers are always 64 bit Floating Point Numbers. If you want to convert string to Number in Javascript you can use parseInt or parseFloat methods.

    0 讨论(0)
提交回复
热议问题