float() built-in function in Python

preview_player
Показать описание

In this Python tutorial we take a look at the float() built-in function in Python. The float() function converts integers and strings to floating point numbers.
Рекомендации по теме
Комментарии
Автор

So when you say float(7), they mean add decimal to 7 by using the word floating next to the number??

dragonblox
Автор

what is this mean: for x in mylist:
print(x) ???

dragonblox
Автор

i tought there was sound like a bong hit xD

rinalx
Автор

why float('nan') returns nan whereas float('pat') returns an error?

shakyaabeytunge