Synopsis
double ldexp(double x,
             int exp);
Description

ldexp multiplies a floating-point number by an integral power of 2.

ldexp returns x * 2^exp.

If the result overflows, errno is set to ERANGE and ldexp returns HUGE_VALF.

If x is ∞ or NaN, ldexp returns x. If the result overflows, ldexp returns ∞.