Difference between revisions of "Max"
From Hercules Wiki
(Created page with "== Syntax == *max(<number>{,<number>...<number>}) *min(<number>{,<number>...<number>}) == Description == Returns the smallest (or biggest) from the set of given numbe...") |
Latest revision as of 05:01, 11 November 2014
Syntax
- max(<number>{,<number>...<number>})
- min(<number>{,<number>...<number>})
Description
Returns the smallest (or biggest) from the set of given numbers.
Example
.@minimum = min(1, -6, -2, 8, 2); // .@minimum will be equal to -6 .@maximum = max(0, 5, 10, 4); // .@maximum will be equal to 10 .@level = min(BaseLevel, 70); // .@level will be the character's base level, capped to 70