Skip to main content

LOG(x)

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

Syntax

LOG( <x> )

Examples

SELECT LOG(2);

┌────────────────────┐
│ log(2)
├────────────────────┤
0.6931471805599453
└────────────────────┘
Try Databend Cloud for FREE

Multimodal, object-storage-native warehouse for BI, vectors, search, and geo.

Snowflake-compatible SQL with automatic scaling.

Sign up and get $200 in credits.

Try it today