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.