What are the practical uses of modulus (%) in programming?

Viewed 49859

Possible Duplicate:
Recognizing when to use the mod operator

What are the practical uses of modulus? I know what modulo division is. The first scenario which comes to my mind is to use it to find odd and even numbers, and clock arithmetic. But where else I could use it?

9 Answers
Related