ldexp
From cppreference.com
Defined in header
<math.h>
|
||
float ldexpf( float arg, int exp );
|
(since C99) | |
long double ldexpl( long double arg, int exp );
|
(since C99) | |
Multiplies an floating point value arg
by 2 raised to power exp
.
[edit] Parameters
arg | - | floating point value |
exp | - | integer value |
[edit] Return value
Returns x×2exp
If the result is too large for the underlying type, range error occurs and HUGE_VAL is returned.
[edit] See also
decomposes a number into significand and a power of 2 (function) |
|
(C99)
(C99) |
multiplies a number by FLT_RADIX raised to a power (function) |