title: javascript Addition creates weird decimal issue
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/1458633/elegant-workaround-for-javascript-floating-point-number-problem">Elegant workaround for JavaScript floating point number problem</a>  </p>
  </blockquote>
  
  
  
  <p>Why is it that when adding 2 numbers together using javascript, it will return a crazy number of decimal points?</p>
  
  <p>If I add  285.72 + 142.86 on paper it equals 428.58, you get that same answer with a calculator.</p>
  
  <p>However if I add that number from 2 textboxes it returns 428.58000000000004</p>
  
  <p><a href="http://jsfiddle.net/2XpV3/" rel="nofollow noreferrer">Example</a></p>
  
  <p>I need my javascript to return 428.58. I know I can use .toFixed(), but I'd prefer not to since I don't get why adding two numbers together would create such a crazy number of places after a decimal point.</p>