08-18-2009 02:00 PM
I'm trying to write some code that finds NaN's in a 1D array of doubles, but for some reason, the "equals" and "not equals" checks are not working properly. I'm using LabVIEW 2009, but this bug might be present in earlier versions.
See the attached screenshot and code.
When will this get fixed? How else can I filter out NaN's from a 1D array? Is there a "NaN" constant that I can use instead of just typing the text "NaN" into a constant of type double?
Solved! Go to Solution.
08-18-2009 02:11 PM
08-18-2009 02:12 PM
This is not a bug. Any comparison involving NaN results in a FALSE for good reason.
To check for NaN, use this primitive.
08-18-2009 02:15 PM