Array.Max(Variable) Method

Top 

Description

Returns the maximum value in the array and stores its position in the passed 'index' argument.

 

Timing Precision Mode

This page describes functionality in nanosecond timing precision mode.

Click here to see the documentation for this object in millisecond timing precision mode.

 

Method Signature

Array.Max(

Variable index)

 

 

Arguments

index


Description:

The index of the maximum element will be stored here. If there are multiple maximum entries, the first entry found will be returned.

 

 

 

Return Value

Type:

number

 

 

Returns the maximum value in the array.

 

Syntax

myVariable1 = myArray1.Max(myVariable2);

 

 

See also

Array Object

Array.Max

Matrix, Array, and Variable Math Guide