| title |
_scalb | Microsoft Docs |
| ms.custom |
|
| ms.date |
11/04/2016 |
| ms.reviewer |
|
| ms.suite |
|
| ms.technology |
|
| ms.tgt_pltfrm |
|
| ms.topic |
article |
| apiname |
|
| apilocation |
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 |
|
| apitype |
DLLExport |
| f1_keywords |
|
| dev_langs |
|
| helpviewer_keywords |
exponential calculations |
_scalb function |
scalb function |
|
| ms.assetid |
148cf5a8-b405-44bf-a1f0-7487adba2421 |
| caps.latest.revision |
14 |
| author |
corob-msft |
| ms.author |
corob |
| manager |
ghogen |
| translation.priority.ht |
cs-cz |
de-de |
es-es |
fr-fr |
it-it |
ja-jp |
ko-kr |
pl-pl |
pt-br |
ru-ru |
tr-tr |
zh-cn |
zh-tw |
|
Scales argument by a power of 2.
double _scalb(
double x,
long exp
);
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.
Remarks
The _scalb function calculates the value of x * 2exp.
| Routine |
Required header |
_scalb |
<float.h> |
For more compatibility information, see Compatibility in the Introduction.
Floating-Point Support
ldexp