+ 2
float function
Does the float function have the same role as the int function ( by converting key presses into numbers) but with decimal?
2 Antworten
+ 5
Yes, float("5.4") works like int("5"). However, both can also convert numbers so float(5) or int(5.2) is fine.
+ 2
Thank you for your answer.