LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Not a Number for a integer (NaN)

I want to assign NaN for integer in the case structure.
Normally, NaN is for floating number.
Transforming NaN to the integer value, the result is 2147483647(+MAX) for the I32 format.
In this stage, I don't know if the minimum or maximum value is used in my code.
How can I assign NaN for integer variable in a case structure?
0 Kudos
Message 1 of 2
(5,250 Views)

Integers don't have NaN. All available bit patterns are used up for regular numbers.

you can convert the NaN into a boolean by the "Not a Number/Path/Refnum" primitive from the comparison palette and wire the output to the case structure.

Message 2 of 2
(5,243 Views)