Export (0) Print
Expand All
Expand Minimize

_scalb

Scales argument by a power of 2.

double _scalb(
   double x,
   long exp 
);

Parameters

x
Double-precision, floating-point value.
exp
Long integer exponent.

Return Value

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.

Remarks

The _scalb function calculates the value of x * 2exp.

Requirements

Routine Required header Compatibility
_scalb <float.h> Win 98, Win Me, Win NT, Win 2000, Win XP

For additional compatibility information, see Compatibility in the Introduction.

Libraries

All versions of the C run-time libraries.

See Also

Floating-Point Support | ldexp | Run-Time Routines and .NET Framework Equivalents

Show:
© 2014 Microsoft