mod

The mod Statement

The mod statement lets you calculate the modulus value (or remainder) of two input values and store the result in the first argument. The first argument must be a variable but the second and third arguments can be variables, numeric constants, or constant expressions. The syntax of the mod statement is shown below.

 mod x, x, 4 // set x equal to x % 4 (0..3)

Generated by  doxygen 1.6.2