title: JavaScript adding decimal numbers issue
body: <p>So I am making a script that adds two numbers (decimal numbers) together, which I have encountered a problem.</p>
  
  <p><a href="http://jsfiddle.net/DerekL/esqnC/" rel="noreferrer">http://jsfiddle.net/DerekL/esqnC/</a></p>
  
  <p>I made the script, it turns out pretty good:</p>
  
  <pre><code>0.1 + 0.5  //0.6
  0.2 + 0.3  //0.5
  </code></pre>
  
  <p>But soon I see:</p>
  
  <pre><code>0.1 + 0.2  //0.30000000000000004
  0.01 + 0.06  //0.06999999999999999
  </code></pre>
  
  <p>And it does not look right to me. I know it is a shortcoming of using float point with finite bits, but I can't find a way to fix that.</p>
  
  <pre><code>Math.ceil   //No
  Math.floor  //No
  .slice      //No
  </code></pre>
  
  <p><strong>UPDATE</strong></p>
  
  <p>Is it possible to multiply the numbers by 1000 first, then add them then divide it by 1000?</p>