[Tutor] puzzled by Python 3's print()

Richard D. Moores rdmoores at gmail.com
Thu Jul 1 10:26:21 CEST 2010

>>> x = 2000000000000034
>>> x/2
>>> print(x/2)

I was expecting, in fact needing, 1000000000000000017 or 1000000000000000017.0

1e+15 is unsatisfactory. Am I forced to use the decimal module?

Dick Moores

More information about the Tutor mailing list