{{keywords>wiki library source code example reference}} ===== frexp ===== double frexp(double); Mantissa m. in *n is the exponent. ===== C Sourcecode Example ===== compile in linux with: gcc frexp.c -o frexp **-lm** -Wall #include /* including standard library */ //#include /* uncomment this for Windows */ #include /* including math library */ int main ( void ) { double x; int n; x = 42.0; printf ("%lf * 2^%d = %f\n", frexp (x , &n), n, x); return 0; } ==== output ==== output: user@host:~$ ./frexp 0.656250 * 2^0 = 42.000000