Numbers & math
Scalar
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 overloadslog(x)
Scalar
| Overload link | x |
Returns |
|---|---|---|
| #01 | DOUBLE |
DOUBLE |
log(b, x)
Scalar
| Overload link | b | x |
Returns |
|---|---|---|---|
| #02 | DOUBLE | DOUBLE |
DOUBLE |
Example
Haybarn WASM 2.0.0-rc12 · In your browser
Engine example · Run to view results.