Skip to main content

Function: float()

float(name, def, min?, max?): f64

Declare a float input. Returns the user's value (clamped to [min, max] when given), or def. Call at module top level.

Parameters​

name​

string

def​

f64

min?​

f64 = NaN

max?​

f64 = NaN

Returns​

f64