title: Comparing negative numbers in javascript
body: <p>I'm sure this is a simple problem, but I'm comparing negative numbers in javascript i.e.:</p>
  
  <pre><code>var num1 = -83.778;
  var num2 = -83.356;
  
  if(num1 &lt; num2)
  {
      // Take action 1
  }
  else
  {
      // Take action 2
  }
  </code></pre>
  
  <p>This script will always take action 2, even though <code>num1</code> is less than <code>num2</code>.  Whats going on here?</p>