ValueError: invalid literal for int(): 1.0000000000e+00

Grant Edwards grante at visi.com
Mon Feb 14 12:22:19 EST 2005


On 2005-02-14, Martin MOKREJ© <mmokrejs at ribosome.natur.cuni.cz> wrote:

> is this a bug or "feature" that I have to use float() to make int() autoconvert
> from it?

It's a feature.  Integers don't have decimal points...

-- 
Grant Edwards                   grante             Yow!  I just had a NOSE
                                  at               JOB!!
                               visi.com            



More information about the Python-list mailing list