Loading

MAX


math
Since v1.0.0
Available on all platforms
See also

Returns the greater of two numeric values.

The MAX function consumes two numeric parameters from the top of the stack and pushes back the greatest value.

Since 2.6.0, this function can be applied to a list of numeric values.

Signature

Examples

1000 2000 MAX 3.14 42.5 MAX 1000 11.1 MAX 11.1 1000 MAX NaN 1000 MAX 0 NaN MAX