MOD

Format

integer1 = number2 MOD number3

Description

This statement will perform modulo division of number2 by number3 and store the remainder (instead of the quotient) in integer1.

Example

A = 8
B = 5
C = A MOD B
After execution of these statements, variable "C" will contain the value "3" which is the remainder of the division of 8 by 5.