Skip to content

float16ToBits

float16ToBits(value): number

Defined in: packages/core/src/number/float16-bits.ts:12

The IEEE-754 binary16 bit pattern of value, as an unsigned 16-bit integer.

A number is a binary64, so value is first rounded to binary16 exactly as Math.f16round does — the bits describe that rounded value, not the original.

number

number