float
float
Function
Convert the value to a floating point number.
Syntax
float(value)
Parameters
| Parameters | Type | Required | Default value | Description |
|---|---|---|---|---|
| value | Any | No | None | The value to convert. |
Return value
| Type | Description |
|---|---|
| Float | Returns an f64 floating point value. |
Example
result = float('3.5') // Output: 3.5 print result
Notes
- Press 0.0 to return if conversion is not possible.