log2
fn
real log2(real x) @safe pure nothrow @nogcCalculates 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 |
fn
double log2(double x) @safe pure nothrow @nogcditto
fn
float log2(float x) @safe pure nothrow @nogcditto
fn
real log2(int x) @safe pure nothrow @nogcdeprecated `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.
fn
real log2(uint x) @safe pure nothrow @nogcdeprecated `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.
fn
real log2(long x) @safe pure nothrow @nogcdeprecated `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.
fn
real log2(ulong x) @safe pure nothrow @nogcdeprecated `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.