log2

fnreal log2(real x) @safe pure nothrow @nogc

Calculates the base-2 logarithm of x:

log, 2x
x log2(x) divide by 0? invalid?
±0.0 -∞ yes no
<0.0 NaN no yes
+∞ +∞ no no
fndouble log2(double x) @safe pure nothrow @nogc

ditto

fnfloat log2(float x) @safe pure nothrow @nogc

ditto

fnreal log2(int x) @safe pure nothrow @nogc
deprecated `std.math.exponential.log2` called with argument types `(int)` matches both " ~ "`log2(real)`, `log2(double)`, and `log2(float)`. Cast argument to floating point type instead.
No documentation available for this declaration.
fnreal log2(uint x) @safe pure nothrow @nogc
deprecated `std.math.exponential.log2` called with argument types `(uint)` matches both " ~ "`log2(real)`, `log2(double)`, and `log2(float)`. Cast argument to floating point type instead.
No documentation available for this declaration.
fnreal log2(long x) @safe pure nothrow @nogc
deprecated `std.math.exponential.log2` called with argument types `(long)` matches both " ~ "`log2(real)`, `log2(double)`, and `log2(float)`. Cast argument to floating point type instead.
No documentation available for this declaration.
fnreal log2(ulong x) @safe pure nothrow @nogc
deprecated `std.math.exponential.log2` called with argument types `(ulong)` matches both " ~ "`log2(real)`, `log2(double)`, and `log2(float)`. Cast argument to floating point type instead.
No documentation available for this declaration.