log2()
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.
log2(
number)
Learn more about syntax conventions.
Name | Type | Required | Description |
---|---|---|---|
number | real |
✔️ | The number for which to calculate the base-2 logarithm. |
- The logarithm is the base-2 logarithm: the inverse of the exponential function (exp) with base 2.
null
if the argument is negative or null or can't be converted to areal
value.
print result=log2(5)
Output
result |
---|
2.3219280948873622 |