Sanjeev Kulkarni N
Sanjeev Kulkarni N

Reputation: 381

BigInteger Operations internally

BigInteger is used for operations on integer that actually overflow the int range (2 to the power 32), like computing factorial of 100 etc.

How does actually BigInteger store the intermediate values or the final value?

Upvotes: 0

Views: 142

Answers (1)

anttix
anttix

Reputation: 7779

The value is stored as an int array

int[] mag;

Use the source Luke :)

grepcode__openjdk_math_BigInteger

Upvotes: 8

Related Questions