|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer|
Scales argument by a power of 2.
double _scalb( double x, long exp );
- Double-precision, floating-point value.
- Long integer exponent.
Returns an exponential value if successful. On overflow (depending on the sign of x), _scalb 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.
The _scalb function calculates the value of x * 2exp.
|_scalb||<float.h>||Win 98, Win Me, Win NT, Win 2000, Win XP|
For additional compatibility information, see Compatibility in the Introduction.
All versions of the C run-time libraries.