跳到主要内容

LOG(b, x)

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

Syntax

LOG( <b, x> )

Examples

SELECT LOG(2, 65536);

┌───────────────┐
│ log(2, 65536)
├───────────────┤
16
└───────────────┘
开始使用 Databend Cloud
低成本
快速分析
多种数据源
弹性扩展
注册