Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Watcom C/C++ v10.0 : C library - <b>synopsis:</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Synopsis:
    #include <math.h>
    double ldexp( double x, int exp );

Description:
    The ldexp function multiplies a floating-point number by an integral
    power of 2.  A range error may occur.

Returns:
    The ldexp function returns the value of x times 2 raised to the power
    exp.

See Also:
    frexp, modf

Example:
    #include <stdio.h>
    #include <math.h>

    void main()
      {
        double value;

        value = ldexp( 4.7072345, 5 );
        printf( "%f\n", value );
      }

    produces the following:

    150.631504

Classification:
    ANSI

Systems:
    All

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