Standards / Extensions | C or C++ | Dependencies |
---|---|---|
C99 |
both | z/OS® V1R7 |
#define _ISOC99_SOURCE
#include <math.h>
double exp2(double x);
float exp2f(float x);
long double exp2l(long double x);
#define _TR1_C99
#include <math.h>
float exp2(float x);
long double exp2(long double x);
Function | Hex | IEEE |
---|---|---|
exp2 | X | X |
exp2f | X | X |
exp2l | X | X |
The exp2 functions return 2 to the power x.