NXC  Version 1.2.1 r5
 All Data Structures Files Functions Variables Groups Pages
ex_isnan.nxc

This is an example of how to use the isNAN function.

task main()
{
float j = -1;
float f = sqrt(j);
if (isNAN(f))
TextOut(0, LCD_LINE1, "not a number");
else
NumOut(0, LCD_LINE1, f);
NumOut(0, LCD_LINE2, f);
}