Search code examples
c#winformsmathbignumarbitrary-precision

Is there support for arbitrary precision arithmetic in C#?


Does C# support arbitrary precision arithmetic (I think this is also called bignums)?

If it doesn't, which libraries do support it?


Solution

  • There is a BigInteger structure that supports arbitrary-size integers.

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

    Nothing for floating-point though.