Skip to main content
Module

x/float16/index.d.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/index.d.ts";

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

Parameters

x: number

A numeric expression.

Returns

number