Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

.NET Framework Library for arbitrary digit precision

Tags:

.net

precision

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

like image 338
RCIX Avatar asked Jul 17 '26 00:07

RCIX


2 Answers

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.

like image 115
jasonh Avatar answered Jul 21 '26 00:07

jasonh


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.

like image 22
Reed Copsey Avatar answered Jul 21 '26 01:07

Reed Copsey



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!