Skip to main content

@novorender/web_app / WasmInstance

Interface: WasmInstance

Extends

  • Float16Instance

Methods

float16()

float16(f32): number

Convert a float32 to float16

Parameters

ParameterTypeDescription
f32numberA 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

ParameterTypeDescription
f16numberA 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

Defined in

@novorender/core3d/wasm/float16.ts:17