Testing for NaN

Hi, how does one test for NaN? The following if statement is skipped, although 'rad' is NaN

Lang.NaN doesn't work either (doesn't compile). "try/catch" doesn't catch it either.

Thanks.