Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/float16/mod.ts>setFloat16

Stage 1 IEEE 754 half-precision floating-point for JavaScript
Go to Latest
function setFloat16
import { setFloat16 } from "https://deno.land/x/float16@v3.7.0/mod.ts";

Stores an Float16 value at the specified byte offset from the start of the view.

Parameters

dataView: DataView

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

byteOffset: number

The value to set.

value: number

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

optional
littleEndian: boolean