Definition
The float() function converts the specified value into a floating point number.
Syntax
float(value)
Parameters
Parameter | Description |
---|---|
value | A number or a string that CAN be converted into a floating point number |
Examples
myFloat = float("23")
print(myFloat)