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

x/tui/src/utils/numbers.ts>normalize

🦕 Deno module for creating Terminal User Interfaces
Go to Latest
function normalize
import { normalize } from "https://deno.land/x/tui@1.3.4/src/utils/numbers.ts";

Normalize {value} between 0 and 1

Parameters

value: number
min: number
max: number

Returns

number