log
Computes the logarithm of the value x to the given base.
Special cases:
log(x, b)
isNaN
if eitherx
orb
areNaN
log(x, b)
isNaN
whenx < 0
orb <= 0
orb == 1.0
log(+Inf, +Inf)
isNaN
log(+Inf, b)
is+Inf
forb > 1
and-Inf
forb < 1
log(0.0, b)
is-Inf
forb > 1
and+Inf
forb > 1
See also logarithm functions for common fixed bases: ln, log10 and log2.
Since Kotlin
1.2Computes the logarithm of the value x to the given base.
Special cases:
log(x, b)
isNaN
if eitherx
orb
areNaN
log(x, b)
isNaN
whenx < 0
orb <= 0
orb == 1.0
log(+Inf, +Inf)
isNaN
log(+Inf, b)
is+Inf
forb > 1
and-Inf
forb < 1
log(0.0, b)
is-Inf
forb > 1
and+Inf
forb > 1
See also logarithm functions for common fixed bases: ln, log10 and log2.
Since Kotlin
1.2Computes the logarithm of the value x to the given base.
Special cases:
log(x, b)
isNaN
if eitherx
orb
areNaN
log(x, b)
isNaN
whenx < 0
orb <= 0
orb == 1.0
log(+Inf, +Inf)
isNaN
log(+Inf, b)
is+Inf
forb > 1
and-Inf
forb < 1
log(0.0, b)
is-Inf
forb > 1
and+Inf
forb > 1
See also logarithm functions for common fixed bases: ln, log10 and log2.
Since Kotlin
1.2Computes the logarithm of the value x to the given base.
Special cases:
log(x, b)
isNaN
if eitherx
orb
areNaN
log(x, b)
isNaN
whenx < 0
orb <= 0
orb == 1.0
log(+Inf, +Inf)
isNaN
log(+Inf, b)
is+Inf
forb > 1
and-Inf
forb < 1
log(0.0, b)
is-Inf
forb > 1
and+Inf
forb > 1
See also logarithm functions for common fixed bases: ln, log10 and log2.