Skip to main content
Module

x/float16/mod.ts

Stage 3 IEEE 754 half-precision floating-point ponyfill
Go to Latest
import * as float16 from "https://deno.land/x/float16@v3.8.4/mod.ts";

Functions

Returns the nearest half-precision float representation of a 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.

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.