log10

inline fun <T : Number> Array<T>.log10(): DoubleArray

Computes the common logarithm (base 10) of the value Array.

Example:

arrayOf(1.0, 4.0, 9.0).log10() // [1.0, 2.0, 3.0, 4.0]

Since

1.1.0

See also

log10
ln

inline fun <T : Number> Iterable<T>.log10(): Iterable<Double>

Computes the common logarithm (base 10) of the value Iterable.

Example:

listOf(10, 100, 1000, 10000).log10() // [1.0, 2.0, 3.0, 4.0]

Since

1.1.0

See also

log10
ln