I have a string in Python like that:
l = "0.00 0.00"
And I want to convert it in a list of two numbers.
The following instruction does not work:
int(l.strip(" \n").split(" ")[0])
Apparently the function int() can convert string like 0 or 00 to an int, but it does not work with 0.0.
Is there a way to convert 0.0?
A.
>>> int(0.0)is0!0.9to be? What about9.9? Truncate[0, 9]or round[1, 10]?