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 FunctionsMODFSynopsis#include double modf (double value, double * iptr)DescriptionThe modf() function splits the argument value into integral and fractional parts, each having thesame sign as value. For example, -3.17 would be split into the intergral part (-3) and the fractionalpart (-0.17).The integral part is stored as a double in the object pointed to by iptr.Example#include #include voidmain (void){double i_val, f_val;}f_val = modf( -3.17, &i_val);Return ValueThe signed fractional part of value.172

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

Saved successfully!

Ooh no, something went wrong!