Coerce.toFloat32
This function converts the specified value to float32.
Syntax
coerce.toFloat32(value)
Arguments
Argument |
Type |
Description |
---|---|---|
value |
any |
The value to be coerced. |
Returns
Type |
Description |
---|---|
float32 |
The coerced float32 value. |
Examples
The function coerce.toFloat32("3.3")
returns 3.3
.