max: Difference between revisions
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...) |
m (Added MacroFunction template and Mathematical Function category) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
= | {{MacroFunction | ||
Returns the largest number of all the numbers that have been passed | |name=max | ||
|description= | |||
Returns the largest number of all the numbers that have been passed in. | |||
|usage= | |||
<source lang="mtmacro" line> | <source lang="mtmacro" line> | ||
[h: largest = max(num, num, ...)] | [h: largest = max(num, num, ...)] | ||
</source> | </source> | ||
|examples= | |||
<source lang="mtmacro" line> | <source lang="mtmacro" line> | ||
[r: max(2, 30, 4, 7)] | [r: max(2, 30, 4, 7)] | ||
Line 17: | Line 17: | ||
30 | 30 | ||
-2 | -2 | ||
}} | |||
[[Category:Mathematical Function]] |
Revision as of 02:57, 9 March 2009
max() Function
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