Implements the mathematical modulo operator. See documentation of en:Template:Mod.