title: Javascript Math Rounding
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/588004/is-javascripts-math-broken">Is JavaScript&#39;s Math broken?</a>  </p>
  </blockquote>
  
  
  
  <p>Okay, I have this script:</p>
  
  <pre><code>var x = new Date;
  setInterval(function() {
      $("#s").text((new Date - x) / 60000 + "Minutes Wasted");
  }, 30000);
  </code></pre>
  
  <p>It works perfectly fine. Except it sometimes gives me an answer like <code>4.000016666666666</code>. How can I round that? If I have to rewrite the script, that is okay. Thanks!</p>