ldexp, ldexpf,
ldexpl — multiply
floating-point number by integral power of 2
#include
<math.h>
double
ldexp(double
x, int exp);
float
ldexpf(float
x, int exp);
long double
ldexpl(long
double x, int
exp);
The
ldexp(),
ldexpf(),
and
ldexpl()
functions multiply a floating-point number by an integral power of 2.
These functions return the value of x times
2 raised to the power exp.
The ldexp(),
ldexpf(), and ldexpl()
functions conform to ISO/IEC 9899:1999
(“ISO C99”).