subtract: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
m (Applied Template:MacroFunction)
(No difference)

Revision as of 05:26, 9 March 2009

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