Contents

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

minuend

The left side of the subtraction equation.

subtrahend

The right side of the subtraction equation.

Return value

The result of subtracting subtrahend from minuend. If either parameter isn’t a number, null.

See Also

Numeric functions