Share via


_scalb

Scales argument by a power of 2.

double_scalb(doublex**,longexp);**

Routine Required Header Compatibility
_scalb <float.h> Win 95, Win NT

For additional compatibility information, see Compatibility in the Introduction.

Libraries

LIBC.LIB Single thread static library, retail version
LIBCMT.LIB Multithread static library, retail version
MSVCRT.LIB Import library for MSVCRT.DLL, retail version

Return Value

_scalb 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.

Parameters

x

Double-precision floating-point value

exp

Long integer exponent

Remarks

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

Floating-Point Support

See Also   ldexp