Skip to content

Latest commit

 

History

History
58 lines (42 loc) · 1.59 KB

File metadata and controls

58 lines (42 loc) · 1.59 KB
title ms.date api_name api_location api_type topic_type f1_keywords helpviewer_keywords ms.assetid
_scalb, _scalbf
04/05/2018
_scalb
_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
148cf5a8-b405-44bf-a1f0-7487adba2421

_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 _doserrno, errno, _sys_errlist, and _sys_nerr.

Remarks

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

Requirements

Routine Required header
_scalb, _scalbf <float.h>

For more compatibility information, see Compatibility.

See also

Floating-Point Support
ldexp