Math.max()

Get the larger of two numbers.

Signature

Math.max(x: Number, y: Number): Number

Description

Gets the larger of x and y.

Parameters

Parameter Type Required Description

x

Number

Yes

A number.

y

Number

Yes

A number.

Return value

Type Description

Number

Greater of x and y.

Examples

Math.max(10, 33)
33

Is this article helpful? 

Tell Fauna how the article can be improved:
Visit Fauna's forums or email docs@fauna.com

Thank you for your feedback!