Products Downloads


French version


 

 

Syntax

LOGARITHM_N(Argument)

 

Description

The LOGARITHM_N SQL scalar function returns the natural logarithm (e) of a number. The LOGARITHM_N and EXPONENTIAL functions are inverse operations.

 

The argument must be a number.

 

The data type of the result is double-precision floating point.

If the argument can be null, the result can be null; if the argument is null, the result is the null value.

 

Example

Assume the column NATLOG is a decimal (4,2) column with a value of 31.62.

 

LOGARITHM_N(NATLOG)

 

Returns the approximate value 3.45.

 

List of SQL scalar functions by topic

 

↑ Top of page


  • Aucune étiquette