Possible duplicate:
Comparing NaN Values ββfor Equality in Javascript
Can someone tell me why this is not working?
if(inbperr == NaN){ document.getElementById('inbclo').value = "N/A"; } else{ document.getElementById('inbclo').value = "%" + inbperr; }
Instead of returning a percentage value or "N / A", as if I want it to return "% NaN".
javascript if-statement nan
I wrestled a bear once. Jul 6 2018-12-12T00: 00Z
source share