By Alvin Alexander. Last updated: January 19, 2019
Java FAQ: How large can a Java BigInteger
be?
Answer: The Java BigInteger Scaladoc states the following:
“BigInteger must support values in the range -2Integer.MAX_VALUE (exclusive) to +2Integer.MAX_VALUE (exclusive) and may support values outside of that range.”
The Scala BigInt
wraps Java’s BigInteger
, so it will also have the same data range.