Back to Type Conversion
float32
Convert to 32-bit float (single precision).
Syntax
float32(x) → Float32 value
Backends
TypeScript
Description
Convert to 32-bit float (single precision).
Parameters
| Name | Description |
|---|---|
| x | Value to convert |
Returns
Float32 value
Examples
Try It
>> float32(3.14)