Search code examples
language-agnosticbignum

Most efficient implementation of a large number class


When doing calculations on very large numbers where integral data types such as double or int64 falls short, a separate class to handle such large numbers may be needed.

Does anyone care to offer an efficient algorithm on how best to do this?


Solution

  • In C# 4.0 use the BigInteger type