log2

expect fun log2(x: Double): Double(source)
expect fun log2(x: Float): Float(source)

Computes the binary logarithm (base 2) of the value x.

Since Kotlin

1.2

See also

function for special cases.

actual inline fun log2(x: Double): Double(source)
actual inline fun log2(x: Float): Float(source)

Computes the binary logarithm (base 2) of the value x.

Since Kotlin

1.2

See also

function for special cases.

actual fun log2(x: Double): Double(source)
actual fun log2(x: Float): Float(source)

Computes the binary logarithm (base 2) of the value x.

Since Kotlin

1.2

See also

function for special cases.

actual external fun log2(x: Double): Double(source)
actual external fun log2(x: Float): Float(source)

Computes the binary logarithm (base 2) of the value x.

Since Kotlin

1.3

See also

actual function for special cases.