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++ 3.0r4 - <b>ldexp</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
ldexp

Usage


   #include <math.h>
   double ldexp(double x,int exp);

   ANSI

Description

   The function ldexp multiplies a floating point number by an integral
   power of two.

Example 

   #include <math.h>
   #include <stdio.h>
   #include <stdlib.h>

   int main()
   {
       double x,y;
       int exp;
       x = 1.5;

       exp = 5;
       y = ldexp(x,exp);
       printf("The ldexp (%f exp %d) = %f\n",x,exp,y);
       return EXIT_SUCCESS;
   }

Return Value

   ldexp returns x* 2 raised to the power exp.

See Also

   exp, frexp, log, log10, modf



See Also: exp frexp log log10 modf

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