title: Integer division compared to floored quotient: why this surprising result?
body: <p>The <code>//</code> "integer division" operator of Python surprised me, today:</p>
  
  <pre><code>&gt;&gt;&gt; math.floor(11/1.1)
  10.0
  &gt;&gt;&gt; 11//1.1
  9.0
  </code></pre>
  
  <p>The <a href="http://docs.python.org/library/stdtypes.html#index-593" rel="nofollow noreferrer">documentation</a> reads "(floored) quotient of x and y".  So, why is math.floor(11/1.1) equal to 10, but 11//1.1 equal to 9?</p>