max: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
(New page: ==Function max== Returns the largest number of all the numbers that have been passed n. ===Usage=== <source lang="mtmacro" line> [h: largest = max(num, num, ...)] </source> ===Examples...)
 
mNo edit summary
Line 1: Line 1:
==Function max==
==Function max==
Returns the largest number of all the numbers that have been passed n.
Returns the largest number of all the numbers that have been passed in.


===Usage===
===Usage===

Revision as of 12:11, 13 December 2008

Function max

Returns the largest number of all the numbers that have been passed in.

Usage

[h: largest = max(num, num, ...)]


Examples

    [r: max(2, 30, 4, 7)]
    [r: max(-2, -40, -100)]

Returns

   30
   -2