Float in Python
Solved
erickvand
-
erickvand -
erickvand -
Hello,
I have a small problem in Python when I write (in a loop on i and ii):
float(lignes[i].strip().split(" ")[ii]), it doesn't return anything,
with lignes[i].strip().split(" ")[ii] being a string containing decimal numbers.
Is it because there are commas instead of points in my string that it doesn't work or is it for another reason?
Thank you in advance
I have a small problem in Python when I write (in a loop on i and ii):
float(lignes[i].strip().split(" ")[ii]), it doesn't return anything,
with lignes[i].strip().split(" ")[ii] being a string containing decimal numbers.
Is it because there are commas instead of points in my string that it doesn't work or is it for another reason?
Thank you in advance
Configuration: Windows XP Internet Explorer 6.0
Indeed, it works better!
++