NXC
Version 1.2.1 r5
Main Page
Related Pages
Modules
Data Structures
Files
Examples
All
Data Structures
Files
Functions
Variables
Groups
Pages
ex_strtod.nxc
This is an example of how to use the
strtod
function.
task main()
{
string
str, endptr;
str =
"3.1415926e2abcdefg"
;
float
f =
strtod
(str, endptr);
NumOut
(0,
LCD_LINE1
, f);
TextOut
(0,
LCD_LINE2
, str);
TextOut
(0,
LCD_LINE3
, endptr);
Wait
(
SEC_6
);
}
Generated by
1.8.2