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 FunctionsFREXPSynopsis#include double frexp (double f, int * p)DescriptionThe frexp() function breaks a floating point number into a normalized fraction and an integral powerof 2. The integer is stored into the int object pointed to by p. Its return value x is in the interval (0.5,1.0) or zero, and f equals x times 2 raised to the power stored in *p. If f is zero, both parts of theresult are zero.Example#include #include voidmain (void){double f;int i;}f = frexp(23456.34, &i);printf("23456.34 = %f * 2^%d\n", f, i);See Alsoldexp()147

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

Saved successfully!

Ooh no, something went wrong!