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

x/float16/mod.ts>hfround

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

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

Parameters

x: number

A numeric expression.

Returns

number