modulus

The [[dyadic?]] modulus operator, represented by a [[percent?]] sign is used to return the remainder in division arithmetic:

print 15 % 4 # 3 (the remainder of 15 divided by 4)

Negative Numbers

The modulus operator may be used with negative numbers:

print -13 % 7 # -6

Modulus Combination Assignment Operator

The modulus compound assignment operator represented by a dragster, can also be used to determine the modulus of a division calculation:

value %= 3 # value = value % 3