Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
div
eof
Expand Minimize
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.

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

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.

For more information about this and other return codes, see _doserrno, errno, _sys_errlist, and _sys_nerr.

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

Routine Required header Compatibility

_scalb

<float.h>

Windows 95, Windows 98, Windows 98 Second Edition, Windows Millennium Edition, Windows NT 4.0, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003

For more compatibility information, see Compatibility in the Introduction.

Not applicable. To call the standard C function, use PInvoke. For more information, see Platform Invoke Examples.

Community Additions

ADD
Show:
© 2015 Microsoft