ldexp
Multiplies a floating-point number by an integral power of 2
#include <math.h> double ldexp ( double x, int exp);
The ldexp function returns the value of x times 2 raised to the power exp.
The ldexp function multiplies a floating-point number by an integral power of 2. A range error can occur.
#include <math.h> #include <stdio.h> main () { double value; value=ldexp( 4.7072345, 5 ); printf ( "%f\n", value ); }
produces the following:
150.631504