Loading

MAX

math

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.

MAX is available since version 1.0.0.

See also

Signatures

Examples

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