.NET Framework Library for arbitrary digit precisi

2019-01-28 17:51发布

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

9条回答
做个烂人
2楼-- · 2019-01-28 18:21

Can you wait for .NET 4.0? They're bringing BigInteger directly into the Framework.

On the other hand, if you can't wait, then the J# runtime includes built-in support for java.math.BigInteger and BigDecimal. This is redistributable just like the rest of the .NET Framework.

查看更多
该账号已被封号
3楼-- · 2019-01-28 18:25
Juvenile、少年°
4楼-- · 2019-01-28 18:26

There are a few options here.

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

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.

查看更多
Ridiculous、
5楼-- · 2019-01-28 18:33

You can use decimal type which gives you 28-29 significant digits

查看更多
小情绪 Triste *
6楼-- · 2019-01-28 18:35

GnuMpDotNet: http://www.emilstefanov.net/Projects/GnuMpDotNet/

If you need pure .NET consider looking into this: http://www.codeplex.com/IntX/

查看更多
爷、活的狠高调
7楼-- · 2019-01-28 18:38

If you want a really fast library then try:

http://www.emilstefanov.net/Projects/GnuMpDotNet/

查看更多
登录 后发表回答