Get Maximum Method

The Get Maximum method returns the larger of the values in the x argument and the y argument. If it cannot convert the value that the number argument contains to a number, then it returns the following value:

NaN

Format

Math.max(x, y)

The following table describes the arguments for the Get Maximum method.

Argument Description

x

A numeric literal or numeric variable.

y

A numeric literal or numeric variable.

Related Topics

For more information, see Get Minimum Method.