BigInteger

suggest change

Remarks

When To Use

Use BigInteger when the value does not fit in a built-in integral type such as long or ulong. Memory use grows with the number of bits, so a huge value can exhaust RAM.

Arithmetic is slower than for int or long, and it gets slower as the value grows because the size is not fixed.

Alternatives

If speed is imperative to your solution it may be more efficient to implement this functionality yourself using a class wrapping a Byte[] and overloading the necessary operators yourself. However, this does require a significant amount of extra effort.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents