Playing aroudn with types yesterday I found typemax(BigInt) does not exist. Which makes perfect sense. the Julia documentation on Arbitrary Precision Arithmetic refers to the Gnu GMP.

Would this be the best place to read up on BigInt?

Depends on what you want to know about BigInt. GMP *says* they go up to arbitrary size, but in reality theyâ€™re limited by the number of bits for one BigInt (they save the size as something equivalent to an int32_t representing the number of bits in one BigIntâ€¦). For most practical applications this is enough though.

Thanks I am just interested in how this is stored. Nothing I desperately need to know!

Gotcha - youâ€™re most likely to find information about this in the GMP documentation. As far as I know, theyâ€™re using custom memory management in C to avoid repeated and unnecessary allocations. You shouldnâ€™t worry about it in general though.

1 Like