log()

Computes the logarithm of x to base b. b may be omitted, in which case the default 10

Reference: DuckDB 2.0.0

Arguments & returns

2 overloads

log(x)

Scalar
Overload link x Returns
#01 DOUBLE DOUBLE

log(b, x)

Scalar
Overload link bx Returns
#02 DOUBLEDOUBLE DOUBLE

Example

log example
SQL
Haybarn WASM 2.0.0-rc12 · In your browser

Engine example · Run to view results.