Investment Studio > Expressions > Functions > Math & Trig > LOG
float log(float number, float base = 10)
Returns the logarithm of the number to the specified base.
The number must be positive. The base must be positive and <> 1.
If the base is omitted, it defaults to 10.
log(number, base) is the inverse of power(base, exponent) = base^exponent.
Examples
=log(10)
equals 1
=log(power(2, 7), 2)
equals 7
=power(2, log(7, 2))
equals 7.