ldexp
Visual Studio 2008
Computes a real number from the mantissa and exponent.
double ldexp( double x, int exp ); float ldexp( float x, int exp ); // C++ only long double ldexp( long double x, int exp ); // C++ only
The ldexp function returns the value of x * 2exp if successful. On overflow (depending on the sign of x), ldexp returns +/– HUGE_VAL; the errno variable is set to ERANGE.
See _doserrno, errno, _sys_errlist, and _sys_nerr for more information on this, and other, return codes.
Routine | Required header |
|---|---|
ldexp | <math.h> |
For additional compatibility information, see Compatibility in the Introduction.
Libraries
All versions of the C run-time libraries.