本文介绍了处理大量数字。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我如何处理C ++中的大数字。示例2 6000 或数字提升到任意两个大素数的幂。 我无法在C ++中处理或存储大数字。有没有办法实现呢?
How can i deal with large numbers in C++. Example 26000 or numbers raised to the powers of any two large prime numbers. I am unable to process or store large numbers in C++. Is there any way to achieve that?
推荐答案你需要一个大整数库。 Google [ ^ ]是你的朋友。 [更新] 查看以下维基百科页面:
- IEEE浮点数 [ ^ ]。
- 四倍精度浮点格式 [ ^ ]。 You need a library for big integers. Google[^] is your friend. [update] Have a look at the following Wikipedia pages:
- "IEEE floating point"[^].
- "Quadruple precision floating-point format"[^].
或许 System.Numerics.BigInteger 正是您要找的: msdn.microsoft/en -us / library / system.numerics.biginteger.aspx [ ^ ] perhaps System.Numerics.BigInteger is what you are looking for: msdn.microsoft/en-us/library/system.numerics.biginteger.aspx[^]
更多推荐
处理大量数字。
发布评论