Skip to main content
Module

x/float16/mod.ts>getFloat16

Stage 3 IEEE 754 half-precision floating-point ponyfill
Go to Latest
function getFloat16
import { getFloat16 } from "https://deno.land/x/float16@v3.8.2/mod.ts";

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

dataView: DataView

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

byteOffset: number

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

optional
littleEndian: boolean

Returns

number