Lưu ý
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử đăng nhập hoặc thay đổi thư mục.
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử thay đổi thư mục.
Switch services using the Version drop-down list. Learn more about navigation.
Applies to: ✅ Microsoft Fabric ✅ Azure Data Explorer ✅ Azure Monitor ✅ Microsoft Sentinel
The logarithm is the base-2 logarithm: the inverse of the exponential function (exp) with base 2.
Syntax
log2(number)
Learn more about syntax conventions.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| number | real |
✔️ | The number for which to calculate the base-2 logarithm. |
Returns
- The logarithm is the base-2 logarithm: the inverse of the exponential function (exp) with base 2.
nullif the argument is negative or null or can't be converted to arealvalue.
Example
print result=log2(5)
Output
| result |
|---|
| 2.3219280948873622 |