log2

Calculates the base-2 logarithm of x: log2x

Special Values
xlog2(x)divide by 0?invalid?
±0.0-∞yesno
<0.0NaNnoyes
+∞+∞nono
  1. real log2(real x)
  2. double log2(double x)
    pragma(inline, true) @safe pure nothrow @nogc
    double
    log2
    (
    double x
    )
  3. float log2(float x)

Meta