I would like to make a LUDICROUSLY high number calculator in Python.
I am thinking 60 numbers and a decimal point. So numbers could be in a format like these:
60 numbers, 30 numbers decimal point 30 numbers (30nums.30nums), or decimal point 60
numbers (.60nums). E.g.

999,999,999,999,999,999,999,999,999,999.999999999999999999999999999999

But, I am wondering if Python has anything that would support such large numbers (including
math functions)? If not, I think I can program the whole process myself, but I'd prefer
not to. :)

Any ideas welcome!

- WolfShield

See decimal package:

>>> from decimal import *
>>> getcontext().prec = 100
>>> Decimal(1).exp()
Decimal('2.718281828459045235360287471352662497757247093699959574966967627724076630353547594571382178525166427')
>>> Decimal(1).exp()**34
Decimal('583461742527454.8814029027346103910190036592389411081057829421204316676742119505811471038583648840548')
>>>

It is missing trig functions however.

Great!
I'll try BigFloat and Decimal!

Thanks a lot guys!

- WolfShield

Edited 5 Years Ago by WolfShield: n/a

This question has already been answered. Start a new discussion instead.