[quote=proland]I'm not sure why that doesn't work bu try this if statement instead
if(numtype(k)==2)
[/quote]
It's not supposed to work. NaN is actually specified by an IEEE standard for floating point numbers. Other scientific software packages like Matlab and Labview similarly return false for that type of comparison. Your suggestion is the "proper" way to check in Igor.
August 21, 2013 at 10:41 am - Permalink
See also IEEE754 standard.
August 21, 2013 at 11:46 am - Permalink
It's not supposed to work. NaN is actually specified by an IEEE standard for floating point numbers. Other scientific software packages like Matlab and Labview similarly return false for that type of comparison. Your suggestion is the "proper" way to check in Igor.
August 21, 2013 at 11:46 am - Permalink
August 21, 2013 at 04:59 pm - Permalink