This Oracle tutorial explains how to use the Oracle/PLSQL LOG function with syntax and examples.
The Oracle/PLSQL LOG function returns the logarithm of n base m.
The syntax for the LOG function in Oracle/PLSQL is:
LOG( m, n )
Value used in the calculation. It must be a positive number, except 0 or 1.
Value used in the calculation. It must be a positive number.
The LOG function returns a numeric value.
The LOG function can be used in the following versions of Oracle/PLSQL:
Let's look at some Oracle LOG function examples and explore how to use the LOG function in Oracle/PLSQL.
For example:
LOG(10, 20)
Output: 1.30102999566398
LOG(2, 15)
Output: 3.90689059560852
LOG(100, 1)
Output: 0