Check out v4 of the Fauna CLI

v4 of the Fauna CLI is now in beta.

The new version introduces enhancements to the developer experience, including an improved authentication workflow. To get started, check out the CLI v4 quick start.

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!