Floating point arithmetic in Javascript
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/588004/is-javascripts-math-broken">Is JavaScript&#39;s Math broken?</a>  </p>
</blockquote>



<p>I have just started playing around with Javascript in the last couple of days and I have noticed something that appears to be quite peculiar. When I add some numbers together, I end up with a marginally incorrect answer.</p>

<p><code>4.99 + 0.98 = 5.970000000000001</code></p>

<p>Why does this happen?</p>
