This documentation is archived and is not being maintained.

max Method

Returns the greater of zero or more supplied numeric expressions.

function max([number1 : Number [, ... [, numberN : Number]]]) : Number

number1, ... , numberN

Required. Numeric expressions.

If no arguments are provided, the return value is equal to NEGATIVE_INFINITY. If any argument is NaN, the return value is also NaN.

Show: