log

fun Number.log(): Double

computes the value of log(x) where x is this receiver number.

Return

Double

fun Number.log(base: Number): Double

computes the value of log(x) where x is this receiver number, with supplied argument as base.

Return

Parameters

<receiver>

Number

base

the base for the logarithmic computation