How convert string '1e7' to an integer?
Ben Finney
ben+python at benfinney.id.au
Sat Nov 7 20:49:48 EST 2009
Mick Krippendorf <mad.mick at gmx.de> writes:
> Peng Yu wrote:
> > It seems that int() does not convert '1e7'.
> It seems it does, though:
>
> >>> int('1e7', base=16)
> 487
Well played, sir.
--
\ “It is wrong to think that the task of physics is to find out |
`\ how nature *is*. Physics concerns what we can *say* about |
_o__) nature…” —Niels Bohr |
Ben Finney
More information about the Python-list
mailing list