Skip to content

float

float(min?, max?): number

Defined in: src/global/numbers.ts:26

A double in [min, max), or [0, 1) with no arguments.

number

number

number

float(); // 0.3964157...
float(10); // 6.2831853... one argument is the upper bound
float(-1.5, 1.5); // 0.4142135...