b % a gives you the remainder of the division of b by a.

Ex :
9 % 3 = 0
9 % 2 = 1
9 % 5 = 4
etc...

EDIT : How the heck did this get posted at the top ?