title: Why does modulus return these values?
body: <p>5%5 is 0</p>
  
  <p>5%4 is 1</p>
  
  <p>5%3 is 2</p>
  
  <p>5%2 is 1</p>
  
  <p>5%1 is 0</p>
  
  <p>Why is that? From my understanding modulus just prints out whether or not it has a remainder but I'm apparently wrong here.</p>
  
  <p>also 5%10 prints out 5, and "%10" seems to consistently print out the last number of any value. 123%10 is 3 for some reason.</p>
  
  <p>What's the deal here?</p>
  
  <pre><code>x = 5%2;
  y = 123%10;
  </code></pre>