Skip to main content
DataView.getFloat16 - Platform - Web documentation
method DataView.getFloat16
Private
DataView.getFloat16(
byteOffset: number,
littleEndian?: boolean,
): number

Gets the Float16 value at the specified byte offset from the start of the view. There is no alignment constraint; multi-byte values may be fetched from any offset.

Parameters

byteOffset: number

The place in the buffer at which the value should be retrieved.

optional
littleEndian: boolean

If false or undefined, a big-endian value should be read.

Return Type

number
Back to top