11.07.2015 Views

PicC 9.50 dsPIC Manual.pdf

PicC 9.50 dsPIC Manual.pdf

PicC 9.50 dsPIC Manual.pdf

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Library FunctionsATOFSynopsis#include double atof (const char * s)DescriptionThe atof() function scans the character string passed to it, skipping leading blanks. It then convertsan ASCII representation of a number to a double. The number may be in decimal, normal floatingpoint or scientific notation.Example#include #include voidmain (void){char buf[80];double i;}gets(buf);i = atof(buf);printf("Read %s: converted to %f\n", buf, i);See Alsoatoi(), atol()Return ValueA double precision floating point number. If no number is found in the string, 0.0 will be returned.125

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!