Skip to content

Returns the natural logarithm of x; that is, the base-e logarithm of x. If x is less than or equal to 0.0E0, the function returns NULL.

func.ln( <x> )
func.ln(2)
┌────────────────────┐
│ func.ln(2) │
├────────────────────┤
0.6931471805599453
└────────────────────┘
LN( <x> )
SELECT LN(2);
┌────────────────────┐
│ ln(2) │
├────────────────────┤
0.6931471805599453
└────────────────────┘