Rounding obscenely large numbers with a lot of decimals gives an error. What's the limit on this type of decimal rounding? I'm very much a beginner with Python so I'm not sure if there's another way around this.
from decimal import *
print(round(Decimal((0.123456789123456789123456789123456789123)+12345678912345678912345678), 2))
Output:
12345678912345678704279552.00
Notice the extra digit on the int:
from decimal import *
print(round(Decimal((0.123456789123456789123456789123456789123)+123456789123456789123456789), 2))
Output:
Traceback (most recent call last):
File "", line 1, in
decimal.InvalidOperation: [<class 'decimal.InvalidOperation'>]