.NET Framework库的任意位precisionNET、Framework、precision

2023-09-03 01:46:17 作者:杨柳岸,晓风残月。

我恢复了这个问题,并使其更加具体:是否有支持的数字与任意的precision位的.NET框架库

I'm reviving this question, and making it more specific: Is there a .NET framework library that supports numbers with arbitrary digits of precision?

推荐答案

这里有几个选项。

有一个很好的选择是 W3b.Sine ,这是原生的C#/。NET,并且支持任意precision浮点值。

A good option is W3b.Sine, which is native C#/.NET, and supports arbitrary precision floating point values.

如果你只处理整数值, INTX 为任意precision支持整数值。一个潜在的更加成熟的选择是 C#BigInt有,但同样,这将不支持浮点运算。

If you are only dealing with integer values, IntX provides support for arbitrary precision integer values. A potentially more mature option would be C# BigInt, but again, this will not support floating point operations.