Skip to main content
Version: 24.3.x

Categories: Math

LN

Returns the natural logarithm of of the numeric expression.

Syntax

LN(numeric_expression double) → float8

  • numeric_expression: A number greater than 0.

Examples

LN example
SELECT LN(0), LN(.1525), LN(1), LN(5.35), LN(5269853105789632584), LN(-1)
-- null, -1.8805906829346708, 0.0, 1.6770965609079151, 43.10853416239341, null