title: How do I test for NaN?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/8965364/comparing-nan-values-for-equality-in-javascript">Comparing NaN values for equality in Javascript</a>  </p>
  </blockquote>
  
  
  
  <p>Can anyone tell me why this is not working?</p>
  
  <pre><code>if(inbperr == NaN) {
      document.getElementById('inbclo').value = "N/A";
  }
  else {
      document.getElementById('inbclo').value = "%" + inbperr;
  }
  </code></pre>
  
  <p>Instead of returning a percentage value, or "N/A", I want it to return "%NaN".</p>