如何在javascript中处理大数字 [英] How to deal with big numbers in javascript
问题描述
什么是JavaScript中处理大数字的标准解决方案(BigNum) ?
http:// jsfromhell。 com / classes / bignumber
http://www-cs-students.stanford.edu/~tjw/jsbn/
如果你只需要整数你可以使用 BigInteger.js 。
I'm looking for a Mathematical solution that deals with really (long, big, huge, storms) numbers. I haven't found anything yet, But I don't wanna think that this problem hasn't be solve at this time. I'm looking for an easy Number solution, like Microsoft Excel Precision (30 decimals), or a BigInteger (Java) solution. in Javascript of course.
It looks like this has been solved before:
What is the standard solution in Javascript for handling big numbers (BigNum)?
http://jsfromhell.com/classes/bignumber
http://www-cs-students.stanford.edu/~tjw/jsbn/
If you only need integers you can use BigInteger.js.
这篇关于如何在javascript中处理大数字的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!