subtract: Difference between revisions
Jump to navigation
Jump to search
(New page: ==Function subract== Subtracts the second number from the first number. Then will continue by subtracting the third number (if any from this result), the function continues subtracting un...) |
No edit summary |
||
Line 12: | Line 12: | ||
<source lang="mtmacro" line> | <source lang="mtmacro" line> | ||
[r: subtract(10, 2, 4)] | [r: subtract(10, 2, 4)] | ||
[r: | [r: subtract(9, 10, 3)] | ||
</source> | </source> | ||
Returns | Returns | ||
4 | 4 | ||
-4 | -4 |
Revision as of 10:34, 14 December 2008
Function subract
Subtracts the second number from the first number. Then will continue by subtracting the third number (if any from this result), the function continues subtracting until all number arguments are exhausted.
Usage
[h: num = subtract(num, num, ...)]
Example
[r: subtract(10, 2, 4)]
[r: subtract(9, 10, 3)]
Returns
4 -4