min

From RPTools Wiki
Revision as of 11:41, 13 December 2008 by Craig (talk | contribs) (New page: ==Function min== Returns the smallest of the numbers that are passed in. ===Usage=== <source lang="mtmacro" line> [h: smallest = min(num, num, ...)] </source> ===Examples=== <sour...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Function min

Returns the smallest of the numbers that are passed in.


Usage

[h: smallest = min(num, num, ...)]


Examples

    [r: min(2, 4, 5, 1)]   
    [r: min(-1, -5, 100)]

Returns

   1
   -5