LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How does NaN display in debugger?

If I set a double to NaN with NotANumber() and then look at it with the view variable debbuger facility, or hover over it with the cursor during debug, does it display as "0.0" or does it show that it's really an NaN?
0 Kudos
Message 1 of 3
(3,370 Views)

To clarify, it seems to me that a NaN displays as a 0.0 value.

 

My real question is, shouldn't a NaN display as something other than 0.0?

 

Menchar

0 Kudos
Message 2 of 3
(3,369 Views)

Hi Menchar,

 

It should show it as "NaN". I just tried it, in versions 9.0 and 2009, and it's showing NaN. Are you able to reproduce this in any situation, with any project, and in multiple installations, or only in some cases?

 

 nan.JPG

0 Kudos
Message 3 of 3
(3,338 Views)