Compute the logarithm of a number to a specified base.
The number. (n>0)
n>0
The base. (b>0 and b≠1)
b>0
b≠1
Returns the logarithm of n to base b.
n
b
0.5.0
log(8, 2)// => 3log(8, 0)// => undefined Copy
log(8, 2)// => 3log(8, 0)// => undefined
Compute the logarithm of a number to a specified base.