Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 javascript 中处理大整数的一般原则是什么?就像在 bigint 的库中一样?我自己怎么做?
你可以看看这个实现。您可能还会发现其他有用的实现。
我过去使用的另一个选项是通过 jsonp 将这些操作交给计算服务器。如果您正在处理如此大的数字,您可能希望这可以为您提供更高的性能和精度。