Learn Before
Concept
float()
The type converter float can turn an integer, a float, or a syntactically legal string into a float.
Example:
print(float("123.45")) print(type(float("123.45")))
123.45 <class 'float'>
0
1
Updated 2021-06-29
Tags
Python Programming Language
Data Science