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

x/float16/index.d.ts>f16round

Stage 3 IEEE 754 half-precision floating-point ponyfill
Latest
function f16round
import { f16round } 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