User Tools

Site Tools


modding:function:max

max

max

max

Syntax (max expression [number]1)
Arguments expression: A list or a number to find the greatest of.
number: One of the numbers that you want to find the greatest of.
Returns number: The greatest of the passed in numbers.
Category 0.99, math
Description Finds and returns the greatest of the passed in numbers. If the first argument is a list of numbers that will be checked but no other arguments will be checked. Otherwise it will go through all the arguments.

Example

(max 1 2 3 45) 

Will return 45.

(max '(5 4 3 2 1)) 

Will return 5. Return to Functions list

modding/function/max.txt · Last modified: 2014/12/27 04:40 by 127.0.0.1