How convert string '1e7' to an integer?

Mick Krippendorf mad.mick at gmx.de
Sun Nov 8 02:42:21 CET 2009


Peng Yu wrote:
> It seems that int() does not convert '1e7'.
It seems it does, though:

>>> int('1e7', base=16)
487

Mick.



More information about the Python-list mailing list