max Method (Windows Scripting - JScript)

 

Returns the greater of zero or more supplied numeric expressions.

Syntax

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

Remarks

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

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

Requirements

Version 1

Applies To: Math Object (Windows Scripting - JScript)

See Also

min Method (Windows Scripting - JScript)
NEGATIVE_INFINITY Property (Windows Scripting - JScript)