Large integers in javascript (more the 2^53-1)

雨燕双飞 提交于 2019-11-27 07:13:50

问题


What is general principals to operate with large integers in javascript? Like in libraries for bigint? How i do it by myself?


回答1:


You may take a look at this implementation. You may also find other implementations useful.




回答2:


Another option I've used in the past, is to hand off those operations to a calculation server via jsonp. If you're working with such large numbers, you likely want the improved performance and precision this can give you.



来源:https://stackoverflow.com/questions/3579153/large-integers-in-javascript-more-the-253-1

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!