处理大量数字。 [英] Dealing with large numbers.
本文介绍了处理大量数字。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我如何处理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 [ ^ ]是你的朋友。
[更新]
查看以下维基百科页面:
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
正是您要找的:
http://msdn.microsoft.com/en -us / library / system.numerics.biginteger.aspx [ ^ ]
perhapsSystem.Numerics.BigInteger
is what you are looking for:
http://msdn.microsoft.com/en-us/library/system.numerics.biginteger.aspx[^]
这篇关于处理大量数字。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文