Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
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

AltStyle によって変換されたページ (->オリジナル) /