multiply: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
m (Conversion script moved page multiply to Multiply without leaving a redirect: Converting page title to first-letter uppercase)
No edit summary
 
(One intermediate revision by one other user not shown)
Line 5: Line 5:


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


|examples=
|examples=
<source lang="mtmacro" line>
<syntaxhighlight 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

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