在C#中是否支持任意精度算术?

Ozt*_*aco 5 c# math bignum arbitrary-precision winforms

C#是否支持任意精度算术(我认为这也称为bignums)?

如果没有,哪些库确实支持它?

Ken*_*rey 6

有一个BigInteger支持任意大小整数的结构.

http://msdn.microsoft.com/en-us/library/system.numerics.biginteger.aspx

虽然没有浮点数.


Eri*_*ert 6

你已经找到了大整数; 如果你需要大的有理数(即分子和分母是大整数的分数),你可以使用Solver库中的Rational类:

http://msdn.microsoft.com/en-us/library/microsoft.solverfoundation.common.rational(v=vs.93).aspx