Back to Type Conversion
float16
Convert to 16-bit float (half precision).
Syntax
float16(x) → Float16 value
Backends
TypeScript
Description
Convert to 16-bit float (half precision).
Parameters
| Name | Description |
|---|---|
| x | Value to convert |
Returns
Float16 value
Examples
Try It
>> float16(3.14)