NXC
Version 1.2.1 r5
Main Page
Related Pages
Modules
Data Structures
Files
Examples
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);
Wait
(
SEC_5
);
}
Generated by
1.8.2