ArcBasicDocs

Mod

Remainder after division.

a Mod b

Parameters

None.

Description

Gives back the remainder after dividing: 7 Mod 3 is 1. The answer takes the sign of the left side, so -7 Mod 3 is -1. Works on decimal numbers too: 7.5 Mod 2 is 1.5. Handy for wrapping round: frame = (frame + 1) Mod 8.

See also