LDEXP(3) | Library Functions Manual | LDEXP(3) |
ldexp
— multiply
by integer power of 2
#include
<math.h>
double
ldexp
(double
x, int n);
long double
ldexpl
(long
double x, int
n);
float
ldexpf
(float
x, int n);
The
ldexp
()
functions multiply x by 2 to the power n.
ldexp
(±0,
n) returns ±0.
ldexp
(x,
0) returns x.
ldexp
(±infinity,
n) returns ±infinity.
The ldexp
() functions conform to ISO/IEC
9899:2011.
December 11, 2006 | macOS 14.6 |