To calculate the logarithm
The function returns the logarithm of a number to a base. If no parameter is specified for the base, it is 10. In the case of 0, the result is -∞ (minus infinity).
log(number)
log(number, number)
number
log(x,y)
To calculate the logarithm of a number x to the base of a number y.
log(x)
To calculate the logarithm of a number x to the base of 10.
Result: 0
Result: -∞
Result: 0.6826061944859853