Subtraction Operator (-)

The subtraction operator subtracts the second operand from the first.

Example

INT a, b, c;
a := 5;
b := 3;
c := a - b;   // c = 2

Underflow

XJEase does not support negative integers. If the result of a subtraction would be negative, the value will underflow and wrap around to the maximum value represented by the variable's current width. See the documentation for the INT data type for a fuller discussion on the behaviour and risks of integer underflow.