divide: Difference between revisions
Jump to navigation
Jump to search
(New page: ==Function divide== Divides the first number by the second number, and then divides that result by the third number --if present-- and so on for all the numbers passed to the function. ==...) |
Verisimilar (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
= | {{MacroFunction | ||
Divides the first number by the second number, and then divides that result by the third number --if present-- and so on for all the numbers passed to the function. | |name=divide | ||
|description=Divides the first number by the second number, and then divides that result by the third number --if present-- and so on for all the numbers passed to the function. | |||
|usage= | |||
<source lang="mtmacro" line> | <source lang="mtmacro" line> | ||
[h: props = divide(num, num, ...)] | [h: props = divide(num, num, ...)] | ||
</source> | </source> | ||
|examples= | |||
<source lang="mtmacro" line> | <source lang="mtmacro" line> | ||
[r: divide(4, 2)] | [r: divide(4, 2)] | ||
Line 17: | Line 18: | ||
</source> | </source> | ||
Returns 6. | Returns 6. | ||
}} | |||
[[Category:Mathematical Function]] |
Revision as of 01:40, 7 March 2009
divide() Function
Divides the first number by the second number, and then divides that result by the third number --if present-- and so on for all the numbers passed to the function.
Usage
[h: props = divide(num, num, ...)]
Examples
[r: divide(4, 2)]
Returns 2.
[r: divide(24, 2, 2)]