Skip to content

Latest commit

 

History

History
60 lines (43 loc) · 1.7 KB

File metadata and controls

60 lines (43 loc) · 1.7 KB
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
_scalb
_scalbf
_o__scalb
_o__scalbf
msvcrt.dll
msvcr80.dll
msvcr90.dll
msvcr100.dll
msvcr100_clr0400.dll
msvcr110.dll
msvcr110_clr0400.dll
msvcr120.dll
msvcr120_clr0400.dll
ucrtbase.dll
api-ms-win-crt-math-l1-1-0.dll
DLLExport
apiref
scalb
_scalb
_scalbf
exponential calculations
_scalb function
_scalbf function
scalb function

_scalb, _scalbf

Scales argument by a power of 2.

Syntax

double _scalb(
   double x,
   long exp
);
float _scalbf(
   float x,
   long exp
); /* x64 only */

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.

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

Remarks

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.

Requirements

Routine Required header
_scalb, _scalbf <float.h>

For more compatibility information, see Compatibility.

See also

Math and floating-point support
ldexp