Browse docsmath.max
On this page
API method

math.max

Returns the higher value of two numeric expressions.

Syntax

Atlas Script
math.max(expression1, expression2)

Parameters

expression1
First numeric expression compared by this math operation.
expression2
Second numeric expression compared by this math operation.

Return value

Returns the higher value of two numeric expressions.

Remarks

Returns the higher value of two numeric expressions.

Examples

Usage pattern
// Replace expression1, expression2 with values described above.
math.max(expression1, expression2);
Reference details are generated from the Atlas Script schema in this documentation source snapshot. Confirm release-specific behavior in the Atlas for Windows build you use.