Synopsis
#include <math.h>
float scalbnf(float x, int exp);
Description

scalbnf multiplies a floating-point number by an integral power of FLT_RADIX.

As floating-point aritmetic conforms to IEC 60559, FLT_RADIX is 2 and scalbnf is (in this implementation) identical to ldexpf.

scalbnf returns x * FLT_RADIX^exp.

Fast math library behavior

If the result overflows, errno is set to ERANGE and scalbnf returns HUGE_VALF.

IEC 60559 math library behavior

If x is ? or NaN, scalbnf returns x.
If the result overflows, scalbnf returns ?.

Portability

scalbnf conforms to ISO/IEC 9899:1999 (C99).

See Also

ldexpf