subn

Category

Mathematical commands

Syntax

subn(vA,B);

vA -= B;

vA = vA - B;

Description

B is subtracted from vA. Since a var can only be from 0-255, if the result is less than 0, then the value wraps around, e.g. 10 - 12 would give 254.

See also

subv