BigInteger
suggest changeRemarks
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.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents