Search code examples
c#.netbigintegerinfrastructure

how to make Int1024


how to declare int1024 in C#? i can use VB or C++ Too.

Regards
Behrooz


Solution

  • See this question: Big integers in C#

    From the answer to that question:

    MS is going to introduce System.Numerics.BigInteger class in .NET 4.0

    Until then, look at IntX class.

    IntX is an arbitrary precision integers library written in pure C# 2.0 with fast - O(N * log N) - multiplication/division algorithms implementation. It provides all the basic operations on integers like addition, multiplication, comparing, bitwise shifting etc.