Documentation Index
Fetch the complete documentation index at: https://docs.oxla.com/llms.txt
Use this file to discover all available pages before exploring further.
Overview
LN() will return the exponential value of its argument, which is recognized as the input parameter’s natural logarithm.
Info:
The logarithm doesn’t take negative numbers or 0.
The logarithm doesn’t take negative numbers or 0.
*yntax
The syntax of theLN() function is described as follows.
x: A positive or a negative number (or an expression that evaluates to a number).
Examples
Case #1: Basic LN() function
The example below shows thatLN() function will return the natural logarithm of the number 7,87653.
Case #2: Using LN() Function With a Table
In the following example, we will combineLN() function with CREATE TABLE statement. Therefore we can obtain natural logarithmic values of a specific column.
- Create a new table named LNTable containing the initValue column with an integer value.
- Run the following query to get the logarithm output of the column:
- It will return the initial value with its natural logarithm value.
- initValue column with the initial integer values.
- lnValue column with the natural logarithm values.