[Tutor] why does this raise an exception...

roman rcher at inter.net.il
Thu May 13 09:55:13 EDT 2004


When converting a few string values to integers with int() I found out
that trying to convert "2.1", i.e. a string that represents a floating
point value to an integer raises an exception. Why does this raise an
exception while something like float("9") does not?




More information about the Tutor mailing list