Skip to content
CryoEagle edited this page Dec 29, 2018 · 6 revisions

max

This function returns highest value from array.

Syntax:

choose(values[])
Argument Description
int values[] List of numbers to search in for highest value

Returns: Real

Description:

This function will find highest value from array.

Example:

int [] values = { 5,  33, 40, 99, 10};
var max = max(values); //return 99

This code will return highest value from array int [] values to var max, of course it return 99.

Back to number_functions

Clone this wiki locally