Possible Duplicate:
What does BigInteger having no limit mean?
The Javadoc for BigInteger
does not define any maximum or minimum. However, it does say:
(emphasis added)
Immutable arbitrary-precision integers
Is there such a maximum, even in theory? Or is the way BigInteger
operates fundamentally different, such that there is in reality no maximum except for the amount of memory available on the computer?
BigInteger
; or, if it truly does not have one, it does not explain why. Instead, it just says that if there is a maximum, it will never affect you with current memory limitations. – VirgateBigInteger.valueOf(2).pow(500500)
returned something for me. – Iguanodon