Namespaces
Variants
Views
Actions

scalbn, scalbln

From cppreference.com
< c‎ | numeric‎ | math
Revision as of 16:29, 1 July 2013 by P12bot (Talk | contribs)

 
 
 
Common mathematical functions
Functions
Basic operations
(C99)
(C99)
(C99)
(C99)
(C99)
(C99)(C99)(C99)
Exponential functions
(C99)
(C99)
(C99)
(C99)
Power functions
(C99)
(C99)
Trigonometric and hyperbolic functions
(C99)
(C99)
(C99)
Error and gamma functions
(C99)
(C99)
(C99)
(C99)
Nearest integer floating point operations
(C99)(C99)(C99)
(C99)
(C99)(C99)(C99)
Floating point manipulation functions
scalbnscalbln
(C99)(C99)
(C99)
(C99)
Classification
(C99)
(C99)
(C99)
Macro constants
 
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 Template:rlpf.

Parameters

arg - floating point value
exp - integer value

Return value

Returns x×FLT_RADIXexp.

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

See also

decomposes a number into significand and a power of 2
(function) [edit]
multiplies a number by 2 raised to a power
(function) [edit]