Search…
Resources
Related Links
log
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 "-∞" (infinity).

Syntax

log(number)
log(number, number)

Return

number

Example

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.
log(1)
Result: 0
log(0)
Result: -∞
log(3,5)
Result: 0.6826061944859853
Last modified 2mo ago
Export as PDF
Copy link