title: What is the difference between int() and floor() in Python 3?
body: <p>In Python 2, <code>floor()</code> returned a float value. Although not obvious to me, I found a few explanations clarifying  why it may be useful to have <code>floor()</code> return float (for cases like <code>float('inf')</code> and <code>float('nan')</code>). </p>
  
  <p>However, in Python 3, <code>floor()</code> returns integer (and returns overflow error for the special cases mentioned before).</p>
  
  <p>So what is the difference, if any, between <code>int()</code> and <code>floor()</code> now?</p>