Everything

exp2 / exp2f / exp2l


Calculates the value of 2 raised to the power d.

[Format]

#include <math.h>

double exp2(double d);

float exp2f(float d);

long double exp2l(long double d);

[Parameters]

d Floating-point number for which exponential function is to be computed

[Return values]

Normal: Exponential function value of 2

Abnormal: Range error: Returns 0, or returns +HUGE_VAL, +HUGE_VALF, or +HUGE_VALL depending on the function

[Remarks]

A range error occurs if the absolute value of d is too large.