By using this site, you agree to this use. See details.
Open Source Your Knowledge, Become a Contributor
Technology knowledge has to be shared and made accessible for free. Join the movement.
BigInteger in C#
There are situations when calculations in application are done on integers bigger than what int and its relatives can carry out. For these situations there is class BigInteger in System.Numerics namespace. BigInteger has many operations available through defined operators and static methods. Check the references section for more information about it.
The following example shows how to use big integers and perform some operations on them.
System.Numerics has also some other non-regular types available as Complex, few vectors and matrices.
- BigInteger Structure (MSDN)