?
=?ISO-8859-1?Q?J=F8rgen_Cederberg?=
Hi,
using Python 2.2.1 on Windows and QNX I'm having trouble understandig
why int() raises a ValueError exception upon converting strings.
Traceback (most recent call last):
File "<stdin>", line 1, in ?
ValueError: invalid literal for int(): 10.1
This is quite frustating. The only solution I can see is to do:10
Is this the only solution or are there any other way to do this?
Regards
Jorgen Cederberg
using Python 2.2.1 on Windows and QNX I'm having trouble understandig
why int() raises a ValueError exception upon converting strings.
Traceback (most recent call last):
File "<stdin>", line 1, in ?
ValueError: invalid literal for int(): 10.1
This is quite frustating. The only solution I can see is to do:10
Is this the only solution or are there any other way to do this?
Regards
Jorgen Cederberg