multiply: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
(New page: ==Function multiply== Returns the numbers that are passed in multiplied together. ===Usage=== <source lang="mtmacro" line> [h: val = multiply(num, num, ...)] </source> ===Examples=== <...)
 
No edit summary
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
==Function multiply==
{{MacroFunction
|name=multiply
|description=
Returns the numbers that are passed in multiplied together.
Returns the numbers that are passed in multiplied together.


===Usage===
|usage=
<source lang="mtmacro" line>
<syntaxhighlight  lang="mtmacro" line>
[h: val = multiply(num, num, ...)]
[h: val = multiply(num, num, ...)]
</source>
</syntaxhighlight>


 
|examples=
 
<syntaxhighlight lang="mtmacro" line>
===Examples===
<source lang="mtmacro" line>
     [r: multiply(2, 5, 6)]   
     [r: multiply(2, 5, 6)]   
     [r: multiply(4, 3, 2)]
     [r: multiply(4, 3, 2)]
</source>
</syntaxhighlight>
Returns  
Returns  
     30
     30
     24
     24
}}
[[Category:Mathematical Function]]

Latest revision as of 23:02, 14 March 2023

multiply() Function

Returns the numbers that are passed in multiplied together.

Usage

[h: val = multiply(num, num, ...)]

Examples

    [r: multiply(2, 5, 6)]   
    [r: multiply(4, 3, 2)]

Returns

   30
24