Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Zortech C++ Language Reference - frexp http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
   frexp

   Usage
   #include <math.h>
   double frexp(double value,int *eptr);

   Description
   Splits the double value into x and e such that (value == x * (2e)  and
   x > .5 and x <= 1.0). e is stored in *eptr and x is returned. If value
   is 0.0, then both x and e are 0.

   Example
   #include <stdio.h>
   #include <math.h>
   main()
   {
   double d1, d2;
   int i;
        d2 = 15.3;
        d1 = frexp(d2, &i);
        printf("d1 = %f si = %d\n",d1,i);
   }

   Return Value
   frexp returns the mantissa x.


See Also: ldexp modf

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson