log() function

Returns the value of the logarithm of the passed value and base.
This function takes two arguments.

Syntax

log(base, value)

Arguments

base - any positive number.
value - any positive number.

Example

log(2, 32) → 5
log(0.5, 32) → -5