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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

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!