clayasaurus wrote:
> How do you test if float is Nan? == and is doesn't seem to work.
> 
> float num;
> if (num ==/is float.nan)
> {
> // true
> }
> else
> {
> // false
> }
> 
> ?
I think this should work as well:
if (num == num) {
     // not NaN
} else {
     // NaN
}
xs0