scalbn, scalbnf, scalbnl, scalbln, scalblnf, scalblnl
From cppreference.com
| 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) |
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 exp (arg×FLT_RADIXexp
) is returned.
If a range error due to overflow occurs, ±