% (Operator)

is the BASIC operator for modulo arithmetic. gives the remainder after  has been divided by.

Unlike some implementations of BASIC,  may be a noninteger. Also,  may be negative, but the result given is the same as if it were positive. Of course,  must be nonzero, otherwise the sytem will generate an error: Division by zero.

If  is positive, the result is positive (or zero), and if   is negative, the result is negative (or zero).