Max Function

Action

Returns the larger of two numbers.

Syntax

nLarger = Max (n1, n2)
Variable Description
nLarger The larger number. NUMBER.
n1 The first number to compare. NUMBER.
n2 The second number to compare. NUMBER.

Notes

Max compares two numbers and returns whichever of them is larger.

Example

Print (Max (80.9, 78)) // prints: 80.9