title: How to work around the decimal problem in JavaScript?
body: <blockquote>
    <p><strong>Possible Duplicates:</strong><br>
    <a href="https://stackoverflow.com/questions/1614533/strange-problem-comparing-floats-in-objective-c">Strange problem comparing floats in objective-C</a><br>
    <a href="https://stackoverflow.com/questions/588004/is-javascripts-math-broken">Is JavaScript&rsquo;s math broken?</a><br>
    <a href="https://stackoverflow.com/questions/963873/1-265-10000-126499-99999999999">1.265 * 10000 = 126499.99999999999 ?????</a>  </p>
  </blockquote>
  
  <p>After watching <a href="http://www.yuiblog.com/blog/2009/11/04/video-crockford-state/" rel="nofollow noreferrer">this</a> I discovered that in JavaScript: </p>
  
  <pre><code>0.1 + 0.2 === 0.3
  </code></pre>
  
  <p>evaluates to false.</p>
  
  <p>Is there a way to work around this?</p>