title: Ruby .ceil and .floor
body: <p>I'm new to Ruby and I'm trying to figure out how <code>ceil</code> and <code>floor</code> works as I get different answers when a fraction or a decimal number is used (similar value). Below is what I have tried:</p>
  
  <pre><code>puts 8/3.ceil == 2   #=&gt; true
  puts 8/3.floor == 2  #=&gt; true
  puts 2.67.ceil == 2  #=&gt; false
  puts 2.67.floor == 2 #=&gt; true
  </code></pre>
  
  <p>From my understanding, <code>ceil</code> should return a number higher and <code>floor</code> is a number lower. Hope someone can enlighten me on this. Thank you! :)</p>