multiply: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
m (Conversion script moved page Multiply to multiply: Converting page titles to lowercase)
No edit summary
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

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