Max

Returns largest number in a list of numbers.

Syntax:

Max (number [, number...])

Parameters:

(f) number floating point number(s).

Returns:

(f)  largest number.

 

Use this function to determine the largest of a set of comma-delimited numbers.

Note: The Max function use floating point numbers internally. Since numbers larger than 9,007,199,254,740,991 or less than -9,007,199,254,740,991 cannot be represented in the floating point format without loss of precision this  functions may produce inaccurate results with very large or very small 64-bit integers.

 

Example:


a = Max(5, -3.57, 125, 34E3, 2345.12, -32767)
Message("Largest number is", a)
See Also:

Abs, Average, Min, Random