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 |
||
(6 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
= | {{MacroFunction | ||
|name=subract | |||
|description= | |||
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. | 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= | |||
< | <syntaxhighlight lang="mtmacro" line> | ||
[h: num = subtract(num, num, ...)] | [h: num = subtract(num, num, ...)] | ||
</ | </syntaxhighlight> | ||
|examples= | |||
< | <syntaxhighlight lang="mtmacro" line> | ||
[r: subtract(10, 2, 4)] | [r: subtract(10, 2, 4)] | ||
[r: | [r: subtract(9, 10, 3)] | ||
</ | </syntaxhighlight> | ||
Returns | Returns | ||
4 | 4 | ||
-4 | -4 | ||
}} | |||
[[Category:Mathematical Function]] |
Latest revision as of 23:59, 14 March 2023
subract() Function
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, ...)]
Examples
[r: subtract(10, 2, 4)]
[r: subtract(9, 10, 3)]
Returns
4-4