title: Weird Javascript Behaviour: Floating Point Addition giving the wrong answer
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/588004/is-javascripts-math-broken">Is JavaScript&rsquo;s math broken?</a>  </p>
  </blockquote>
  
  <p>This seems really stupid, but when running this, it will display </p>
  
  <p>7.300000000000001 instead of 7.3</p>
  
  <blockquote>
  <pre><code>&lt;script language="javascript"&gt;
      function buttonClicked() {
          var mySum = 1.1 + 1.1 + 1.1 + 0 + 4;
          alert(mySum);
      }
  &lt;/script&gt;
  </code></pre>
  </blockquote>
  
  <p>What would cause this? I have the javascript on a pretty basic aspx page. We are actually using javascript to add up values from form inputs, this was just an example with numbers that were breaking it, there are many others..</p>
  
  <p>Any idea what could be doing this?!?</p>