#include <math.h> double exp2(double x);
float exp2f(float x);
long double exp2l(long double x);
Link with -lm.
Feature Test Macro Requirements for glibc (see feature_test_macros(7)):
exp2(), exp2f(), exp2l():
For various special cases, including the handling of infinity and NaN, as well as overflows and underflows, see exp(3).
For a discussion of the errors that can occur for these functions, see exp(3).
|exp2(), exp2f(), exp2l()||Thread safety||MT-Safe|