title: What does the % operator do in Ruby in N % 2?
body: <p><code>if counter % 2 == 1</code>  I am trying to decode this line - it's a Rails project and I am trying to figure out what the <code>%</code> does in this if statement.</p>