Skip to main content

max

Function max 

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

Returns the largest of its arguments.

§Parameters

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

§Return value

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

§Examples

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

§See also

min