我怎样才能重新present在.NET中一个非常大的整数? [英] How can I represent a very large integer in .NET?

查看:139
本文介绍了我怎样才能重新present在.NET中一个非常大的整数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

.NET是否带有能够再presenting非常大的整数的一类,比如100的阶乘?如果不是,有什么好的第三方库做到这一点?

Does .NET come with a class capable of representing extremely large integers, such as 100 factorial? If not, what are some good third party libraries to accomplish this?

推荐答案

.NET 4的的的BigInteger

再presents任意大的有符号整数。

Represents an arbitrarily large signed integer.

的BigInteger的类型是不可变的类型,它重新presents任意大的整数,其值在理论上没有上限或下限。这种类型不同于其他整型在.NET Framework,它有一系列指示他们的MINVALUE和MaxValue的属性。

The BigInteger type is an immutable type that represents an arbitrarily large integer whose value in theory has no upper or lower bounds. This type differs from the other integral types in the .NET Framework, which have a range indicated by their MinValue and MaxValue properties.

这篇关于我怎样才能重新present在.NET中一个非常大的整数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆