title: Weird Objective-C Mod Behavior for Negative Numbers
body: <p>So I thought that negative numbers, when mod'ed should be put into positive space... I cant get this to happen in objective-c</p>
  
  <p>I expect this:</p>
  
  <pre><code>-1 % 3 = 2
   0 % 3 = 0
   1 % 3 = 1
   2 % 3 = 2
  </code></pre>
  
  <p>But get this</p>
  
  <pre><code>-1 % 3 = -1
   0 % 3 = 0
   1 % 3 = 1
   2 % 3 = 2
  </code></pre>
  
  <p>Why is this and is there a workaround?</p>