libm.info: ldexp

Go forward to log
Go backward to isnan
Go up to Math
Go to the top op libm

`ldexp', `ldexpf'--load exponent

*Synopsis*
     #include <math.h>
     double ldexp(double VAL, int EXP);
     float ldexpf(float VAL, int EXP);
   *Description*
`ldexp' calculates the value VAL times 2 to the power EXP.  `ldexpf' is
identical, save that it takes and returns `float' rather than `double'
values.
*Returns*
`ldexp' returns the calculated value.
   Underflow and overflow both set `errno' to `ERANGE'.  On underflow,
`ldexp' and `ldexpf' return 0.0.  On overflow, `ldexp' returns plus or
minus `HUGE_VAL'.
*Portability*
`ldexp' is ANSI, `ldexpf' is an extension.