Skip to main content
Returns the maximum element in an array.

Syntax

Parameters

Return Type

Same as the element type of the array.

Example

The following example calculates the maximum number in the levels array:

Rows: 1Execution time: 5.14ms