Subtracting numbers
Return the result of subtracting two numbers.
Overview
Use the sub() function in the expression of a matchmaking rule to subtract two numbers.
Declaration
number sub(number $minuend, number $subtrahend)Parameters
minuendThe left side of the subtraction equation.
subtrahendThe right side of the subtraction equation.
Return value
The result of subtracting subtrahend from minuend. If either parameter isn’t a number, null.