##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# scalbn, scalbln

From cppreference.com
< c‎ | numeric‎ | math

Defined in header `<cmath>` |  |
float scalbnf( float x, int exp ); |  | (since C99)
double scalbn( double x, int exp ); |  | (since C99)
long double scalbnl( long double x, int exp ); |  | (since C99)
float scalblnf( float x, long exp ); |  | (since C99)
double scalbln( double x, long exp ); |  | (since C99)
long double scalblnl( long double x, long exp ); |  | (since C99)

Multiplies an floating point value `x` by FLT_RADIX raised to power `exp`. On binary system it is equivalent to ldexp().

### [edit] Parameters

arg | - | floating point value
exp | - | integer value

### [edit] Return value

Returns `x×FLT_RADIXexp`.

If the result is too large for the underlying type, range error occurs and HUGE_VAL is returned.

### [edit] See also

frexp | decomposes a number into significand and a power of 2 (function) [edit]
ldexp | multiplies a number by 2 raised to a power (function) [edit]
C++ documentation for scalbn

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=c/numeric/math/scalbn&oldid=64291"