Skip to main content

min

Function min 

Source
pub fn min(values: Repeatable<number>) -> number
Expand description

Returns the smallest of its arguments.

§Parameters

  • x, ···: one or more numbers.

§Return value

The argument with the minimum value, according to the < operator.

§Examples

print(math.min(1, 5, 3))     --> 1
print(math.min(-1, -5))      --> -5

§See also

max