0

I am dividing a 100 digit number with a 1-2 digit number. The result I end up with is:

4.483392416946529e+99

How do I print all 99 digits of this number?

Wrapping the division with float() doesn't work at all.

Here is the code I used

from random import *

a = ''
for n in range(101):
    x = randint(0,9)
    a = a + str(x)

a = int(a)
a/7

I expected a 99 digit number rounded to two decimal places.

0 Answers0