kotlin-stdlib / kotlin.math / log2 log2 Common JVM JS Native 1.2 fun log2(x: Double): Double fun log2(x: Float): Float Computes the binary logarithm (base 2) of the value x. See Also ln