max()

Synopsis

Returns the largest number amongst n and nums. Always returns a number .

Syntax

max ( n As Number, _
       ... nums As Number ) As Number 
Argument Type Description
n number The first number, at least one argument is required.
nums number Repeated; the remaining set of numbers, as many as desired.

Example 1

Single input
Intent >max(3) 
--> 3.0 

Example 2

Two inputs
Intent >max(3, 5) 
--> 5.0 

Example 3

Multiple inputs
Intent >max(3, 5, 2, 6.2) 
--> 6.2