title: Python quotient vs remainder
body: <p>The python 2.6 docs state that <code>x % y</code> is defined as the remainder of x / y (<a href="http://docs.python.org/library/stdtypes.html#numeric-types-int-float-long-complex" rel="nofollow noreferrer">http://docs.python.org/library/stdtypes.html#numeric-types-int-float-long-complex</a>). I am not clear on what is really occurring though, as:</p>
  
  <pre><code>for i in range(2, 11):
      print 1.0 % i
  </code></pre>
  
  <p>prints "1.0" ten times, rather than "0.5, 0.333333, 0.25" etc. as I expected (1/2 = 0.5, etc). </p>