The Open
D
Programming Language
Learn
Language
Library
Contribute
Blog
exp2
std
math
exponential
Calculates 2
x
.
Special Values
x
exp2(x)
+∞
+∞
-∞
+0.0
NaN
NaN
real
exp2
(real x)
double
exp2
(double x)
float
exp2
(float x)
version(none)
pragma(
inline
, true) @
safe
pure nothrow @
nogc
float
exp2
(
float
x
)
double
exp2
(double x)
float
exp2
(float x)
Meta
Source
See Implementation
std
math
exponential
aliases
FP_ILOGB0
FP_ILOGBNAN
functions
exp
exp2
expm1
frexp
ilogb
ldexp
log
log10
log1p
log2
logb
pow
powmod
scalbn
Calculates 2x.