@novorender/web_app / 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
Remarks
This function does not handle NANs or INFs.
Inherited from
Float16Instance.float16
Defined in
@novorender/core3d/wasm/float16.ts:25
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.
Remarks
This function does not handle NANs or INFs.
Inherited from
Float16Instance.float32