Max()

Find the maximum value in an array

MAX() array=Array Find the value of the highest element

example:

	# Find the index of the highest data value
	>> print Bracket(w.y, Max(w.y))
	12456

Max

The Max() function returns the value of the largest element of the array it is applied to. The size of an element is determined by comparing elements with each other using the "<" and "< "operators. As a result string arrays may also have a maximum value.

In arrays where there are undefined elements, the maximum value returned is the value of the largest defined element. For correctness, the array should have all undefined elements "fixed" explicitly to a defined value first. This can be done using the Fix() command.

Parameters:

Array (Array)

Array to be tested.

RESULT = (Array element type)

The maximum value found in the array.