Skip to content
drewmccluskey edited this page Jan 9, 2019 · 6 revisions

max

This function returns the highest value from a list of inputs.

Syntax:

max(item1, item2..)
Argument Description
T item1 One of the numbers to search for highest value
T item2 another of the numbers to search for highest value

Returns: T

Description:

This function will return the highest value from a list of inputs.

Example:

var maxValue = max(5, 33, 40, 99, 10); //return 99

This code will set var maxValue to the highest value in array1, of course it will return 99.

Back to number_functions

Clone this wiki locally