title: Floor function to float numbers
body: <p>I wrote a ruby code that rounds down a number as follows:</p>
  
  <pre><code>def round_down(number)
    number.to_s.split(/\./)[0].to_i
  end
  round_down(1.9)
  </code></pre>
  
  <p>Does somebody know a more rubystic way to achieve this?</p>