ldexp


Convert floating-point number to power

[Classification]

Mathematical library

[Syntax]

#include <math.h>

double ldexp(double val, int exp);

[Return value]

Returns the value calculated byval x 2 exp.

If an underflow or overflow occurs as a result of executing ldexpf, macro ERANGE is set to global variable errno. If an underflow occurs, ldexpf returns an denormal number. If an overflow occurs, it returns HUGE_VAL.

[Description]

This function calculates val x 2 exp.