This Oracle tutorial explains how to use the Oracle/PLSQL LN function with syntax and examples.
The Oracle/PLSQL LN function returns the natural logarithm of a number.
The syntax for the LN function in Oracle/PLSQL is:
LN( number )
The numeric value used to calculate the natural logarithm. It must be greater than 0.
The LN function returns a numeric value.
The LN function can be used in the following versions of Oracle/PLSQL:
Let's look at some Oracle LN function examples and explore how to use the LN function in Oracle/PLSQL.
For example:
LN(20)
Output: 2.99573227355399
LN(25)
Output: 3.2188758248682
LN(100)
Output: 4.60517018598809
LN(100.5)
Output: 4.61015772749913