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

x/float16/index.d.ts>hfround

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

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

Parameters

x: number

A numeric expression.

Returns

number