title: ruby: converting from float to integer in ruby produces strange results
body: <pre><code>ree-1.8.7-2010.02 :003 &gt; (10015.8*100.0).to_i
   =&gt; 1001579 
  ree-1.8.7-2010.02 :004 &gt; 10015.8*100.0
   =&gt; 1001580.0 
  ree-1.8.7-2010.02 :005 &gt; 1001580.0.to_i
   =&gt; 1001580 
  </code></pre>
  
  <p>ruby 1.8.7 produces the same.
  Does anybody knows how to eradicate this heresy? =)</p>