_scalb

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.

Заметки

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

Требования

Routine

Required header

_scalb

<float.h>

For more compatibility information, see Compatibility in the Introduction.

Эквивалент в .NET Framework

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

См. также

Основные понятия

Floating-Point Support

ldexp