interface.WasmInstance
API > WasmInstance
Interface: WasmInstance
Extends
Float16Instance
Methods
float16
float16(
f32
):number
Convert a float32 to float16
Parameters
Parameter | Type | Description |
---|---|---|
f32 | number | A float16, expressed as a regular floating point number. |
Returns
number
The converted value as a float16, expressed as a 16 bit unsigned integer
Inherited from
Float16Instance.float16
Source
@novorender/core3d/wasm/float16.ts:25
Remarks
This function does not handle NANs or INFs.
float32
float32(
f16
):number
Convert a float16 to float32
Parameters
Parameter | Type | Description |
---|---|---|
f16 | number | A float16, expressed as a 16 bit unsigned integer. |
Returns
number
The converted value as a regular floating point number.
Inherited from
Float16Instance.float32
Source
@novorender/core3d/wasm/float16.ts:17
Remarks
This function does not handle NANs or INFs.