description | title | ms.date | api_name | api_location | api_type | topic_type | f1_keywords | helpviewer_keywords | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Learn more about: _scalb, _scalbf | _scalb, _scalbf | 1/15/2021 |
|
|
|
|
|
|
Scales argument by a power of 2.
double_scalb( doublex, longexp ); float_scalbf( floatx, longexp ); /* x64 only */
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 errno
, _doserrno
, _sys_errlist
, and _sys_nerr
.
The _scalb
function calculates the value of x
* 2exp
.
By default, this function's global state is scoped to the application. To change this behavior, see Global state in the CRT.
Routine | Required header |
---|---|
_scalb , _scalbf | <float.h> |
For more compatibility information, see Compatibility.