Is there a way to get python to print extremely large longs in scientific notation? I am talking about numbers on the order of 10^1000 or larger, at this size the standard print
Here's a solution using only standard library:
>>> import decimal >>> x = 10 ** 1000 >>> d = decimal.Decimal(x) >>> format(d, '.6e') '1.000000e+1000'