title: Is integer division always equal to the floor of regular division?
body: <p>For large quotients, integer division (<code>//</code>) doesn't seem to be necessarily equal to the floor of regular division (<code>math.floor(a/b)</code>).</p>
  
  <p>According to Python docs (<a href="https://docs.python.org/3/reference/expressions.html" rel="noreferrer">https://docs.python.org/3/reference/expressions.html</a> - 6.7), </p>
  
  <blockquote>
    <p>floor division of integers results in an integer; the result is that of mathematical division with the ‘floor’ function applied to the result. </p>
  </blockquote>
  
  <p>However,</p>
  
  <pre><code>math.floor(648705536316023400 / 7) = 92672219473717632
  
  648705536316023400 // 7 = 92672219473717628
  </code></pre>
  
  <p><code>'{0:.10f}'.format(648705536316023400 / 7)</code> yields '92672219473717632.0000000000', but the last two digits of the decimal part should be 28 and not 32. </p>