RAD function: max

A RAD function that returns the largest value in a list of values or arrays.

Function

max

Format

max(element1, element2, element3, ...)

Or:

max($variable)

Where the $variable variable is an array or a list of values.

Factors

  • The max function returns the maximum value of either times or numbers.
  • If you include an array in the list of elements, the system evaluates all of the elements in the array as if they were individual values.
  • An attempt to use an array of strings as a parameter results in a segmentation fault, which causes the application to exit in error.

Example

max(17,24,35,73,10) returns 73.

max(1,{2,3,4},3) returns 4.