title: Javascript check if a decimal is negative
body: <p>How would i check if a decimal is negative? Because the if statement automatically turns it into a number...</p>
  
  <p>Example:</p>
  
  <pre><code>var x = -0.24324; 
  </code></pre>
  
  <p>how would i parse it so it tells me <code>x</code> is negative/positive? </p>
  
  <p>Thanks</p>
  
  <p>Edit: Maybe i phrased it badly, the variable changes so something it will be positive like <code>0.00000001</code>, sometimes <code>-0.0003423423</code>, sometimes <code>0.0000000234</code></p>
  
  <p>If i put it in a if statement everything is automatically turned into 0 right? And i can't use a parseFloat in the if statement?</p>