title: Difference between floats and ints in Javascript?
body: <p>I'm looking through some of the code from the Google Closure Library and I found this line:</p>
  
  <pre><code>var isNegative = number &lt; 0.0 || number == 0.0 &amp;&amp; 1 / number &lt; 0.0;
  </code></pre>
  
  <p>I've figured that the reason for such an initially strange looking sign-check is to identify <code>-0</code> as negative, but is there any reason to use <code>0.0</code> instead of <code>0</code>?</p>