Mwnci max() Function

Syntax

max(array)

Description

The max() function returns highest value within the named array.

Example

a=[3,5,4,7,1]
println("The highest value is: ", max(a))


The highest value is: 7