Export (0) Print
Expand All

Math.max Function (JavaScript)

Returns the greater of zero or more supplied numeric expressions.

Math.max([number1[, number2[. . . [, numberN]]]]) 

The optional number1, number2, . . ., numberN arguments are numeric expressions to be evaluated.

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

Supported in the following document modes: Quirks, Internet Explorer 6 standards, Internet Explorer 7 standards, Internet Explorer 8 standards, Internet Explorer 9 standards. See Version Information.

Applies To: Math Object (JavaScript)

Show:
© 2014 Microsoft