Namespaces
Variants
Views
Actions

scalbn, scalbnf, scalbnl, scalbln, scalblnf, scalblnl

From cppreference.com
< c‎ | numeric‎ | math
 
 
 
Common mathematical functions
Functions
Basic operations
(C99)
(C99)
(C99)
(C99)(C99)(C99)(C23)
Maximum/minimum operations
(C99)
(C99)
Exponential functions
(C23)
(C99)
(C99)
(C23)
(C23)

(C99)
(C99)(C23)
(C23)
(C23)
Power functions
(C99)
(C23)
(C23)

(C99)
(C23)
(C23)
Trigonometric and hyperbolic functions
(C23)
(C23)
(C23)
(C23)
(C99)
(C99)
(C99)
Nearest integer floating-point
(C99)(C99)(C99)
(C99)

(C99)(C99)(C99)
(C23)(C23)(C23)(C23)
Floating-point manipulation
scalbnscalbln
(C99)(C99)
(C99)(C23)
(C99)
Narrowing operations
(C23)
(C23)
(C23)
(C23)
(C23)
(C23)
Quantum and quantum exponent
Decimal re-encoding functions
Total order and payload functions
Classification
(C99)
(C99)
(C99)
(C23)
Error and gamma functions
(C99)
(C99)
(C99)
(C99)
Types
Macro constants
Special floating-point values
(C99)(C23)
Arguments and return values
Error handling
Fast operation indicators
 
Defined in header <math.h>
float       scalbnf( float arg, int exp );
(1) (since C99)
double      scalbn( double arg, int exp );
(2) (since C99)
long double scalbnl( long double arg, int exp );
(3) (since C99)
Defined in header <tgmath.h>
#define scalbn( arg, exp )
(4) (since C99)
Defined in header <math.h>
float       scalblnf( float arg, long exp );
(5) (since C99)
double      scalbln( double arg, long exp );
(6) (since C99)
long double scalblnl( long double arg, long exp );
(7) (since C99)
Defined in header <tgmath.h>
#define scalbln( arg, exp )
(8) (since C99)
1-3,5-7) Multiplies a floating-point value arg by FLT_RADIX raised to power exp.
4,8) Type-generic macros: If arg has type long double, scalbnl or scalblnl is called. Otherwise, if arg has integer type or the type double, scalbn or scalbln is called. Otherwise, scalbnf or scalblnf is called, respectively.

Contents

[edit] Parameters

arg - floating-point value
exp - integer value

[edit] Return value

If no errors occur, arg multiplied by FLT_RADIX to the power of