Going past the float size limits?

Fredrik Johansson fredrik.johansson at gmail.com
Sun Oct 28 22:50:10 CET 2007


jimmy.musselwhite at gmail.com wrote:
> Hello all
> It would be great if I could make a number that can go beyond current
> size limitations. Is there any sort of external library that can have
> infinitely huge numbers? Way way way way beyond say 5x10^350 or
> whatever it is?

> I'm hitting that "inf" boundary rather fast and I can't seem to work
> around it.

> Thanks!

mpmath (http://code.google.com/p/mpmath/) supports nearly unlimited
exponents (as large as fit in your computer's memory); much larger
than gmpy. It is also essentially compatible with regular floats with
respect to rounding, function support, etc, if you need that.

Fredrik



More information about the Python-list mailing list