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 two provided Numbers.

Parameters

Parameter Type Required Description

x

Number

true

A number.

y

Number

true

A number.

Return value

Type Description

Number

Greater of the provided numbers.

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!