These cookies provide us with information on how our websites are being used, to help us improve the quality and relevance of content we place on them. Additionally, they also allow us to show you embedded videos and remember your preferences and actions, so that the websites do not bother you with the same request repeatedly (e.g. filling a form to download a PDF file and provide feedback about such actions to our affiliated entities).
LN
The LN function returns the natural logarithm of a number with base e, the constant equal to 2.71828182845904. The LN function returns NULL if number is less than or equal to 0.
The LN function has the following format:
LN(n)
- where n is greater than 0
A natural logarithm LN(n) is the inverse of the EXP( ) function and takes as arguments any numeric data, including metrics, metrics expressions, and constants.
Syntax
SELECT LN(…)
SELECT LN(number)
Examples
SELECT LN(10)
SELECT LN(1/12)
SELECT LN(1.5)
SELECT LN(SUM({fact/amount}))