我想在c#中划分和乘以非常大的数字? [英] I want to divide and multiply very big numbers in c#?
本文介绍了我想在c#中划分和乘以非常大的数字?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在c#中划分并乘以非常大的数字?
我听说过 BigInteger
,但我的数字大约是300!
我不知道 BigInteger
支持与否。
我是初学者,请输入一些示例代码
谢谢。
祝你好运:)
I want to divide and multiply very big numbers in c#?
I heard something about BigInteger
, but my numbers are about 300!
I don't know BigInteger
support it or not.
I'm a beginner, please type some sample code
Thanks.
Good luck:)
推荐答案
BigInteger类型是一个不可变类型,表示一个任意大的整数,其理论上的值没有上限或下限 - http://msdn.microsoft.com/en-us/library/system.numerics.biginteger.aspx
应该仅限于可用内存。使用可以将内存分页到硬盘驱动器的64位系统,您应该没有任何问题。
"The BigInteger type is an immutable type that represents an arbitrarily large integer whose value in theory has no upper or lower bounds" -- http://msdn.microsoft.com/en-us/library/system.numerics.biginteger.aspx
It should be limited only by the available memory. With a 64-bit system that can page memory to the hard drive, you should not have any problems.
这篇关于我想在c#中划分和乘以非常大的数字?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文