title: Erlang floats and trunc
body: <p>R15b on Windows gives:</p>
  
  <pre><code>&gt;trunc(1.9999999999999999999).
  2
  </code></pre>
  
  <p>For that matter, just typing the float returns:</p>
  
  <pre><code>&gt; 1.9999999999999999999.              
  2.0
  </code></pre>
  
  <p>AFAIK, the truncate function should just drop the fractional portion (at least that's what I need, anyway).  A floor function might also do the trick AFAIK, but the floor implementations I've seen posted online use... you guessed it... trunc.</p>
  
  <p>I'm not nitpicking this, I actually need this to be correct for a program I'm developing.</p>
  
  <p>Any ideas on this?</p>
  
  <p>Thanks.</p>