巨大的整数JavaScript库 [英] Huge Integer JavaScript Library
本文介绍了巨大的整数JavaScript库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有任何JavaScript库可用于涉及700+位数的计算?
另外,在C ++中同样的事情怎么样?
Is there any JavaScript library that can be used for calculations involving 700+ Digits? Also, how about the same thing in C++?
推荐答案
JavaScript:
- Leemon Baird的BigInt库。这似乎很受欢迎。它专门用于加密用途。
- 我自己的 BigInteger库。类似于Java BigInteger类,但所有计算都是在base-10中完成的。
- 。另一个BigInteger类与Java类似。我从来没有使用过这个API,但API看起来与我的类似。
- Leemon Baird's BigInt library. This seems to be popular. It's made specifically for cryptographic uses.
- My own BigInteger library. Similar to the Java BigInteger class, but all calculations are done in base-10.
- jsbn. Another BigInteger class similar to Java's. I've never used this one, but the API looks similar to mine.
- Most people use GMP.
- CLN - Class Library for Numbers. I've used this in the past and it has a pretty nice API.
JavaScript:
这篇关于巨大的整数JavaScript库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文