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

x/float16/index.d.ts

Stage 1 IEEE 754 half-precision floating-point for JavaScript
Go to Latest
import * as float16 from "https://deno.land/x/float16@v3.7.0/index.d.ts";

Functions

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.

Returns the nearest half-precision float representation of a number.

Returns true if the value is a Float16Array instance.

Returns true if the value is a type of TypedArray instance that contains Float16Array.

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

Interfaces

A typed array of 16-bit float values. The contents are initialized to 0. If the requested number of bytes could not be allocated an exception is raised.