Log
The Log()
function calculates the natural logarithm (base e
) of a given number, or calculates the logarithm of a number by specified base.
Read wiki for more info about logarithm.
This function is NOT SQL compatible. For more information about SQL compatibility, see our documentation.
Returns the logarithm of a givennumber
, using base e
or a specified base number.
Returns Invalid expression
if one of the parameter values is not a valid number.
Syntax
Parameters
Name | Type | Required | Description |
---|---|---|---|
| numeric | a numeric value. | |
| numeric | a numeric value. |
Examples
Function call | Result |
---|---|
Log(5) | 1.6094 |
Log(25, 5) | 2 |
Log(5, 25) | 0.5 |
Last updated