你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
log()
Applies to: ✅ Microsoft Fabric ✅ Azure Data Explorer ✅ Azure Monitor ✅ Microsoft Sentinel
The natural logarithm is the base-e logarithm: the inverse of the natural exponential function (exp).
Syntax
log(
number)
Learn more about syntax conventions.
Parameters
Name | Type | Required | Description |
---|---|---|---|
number | real |
✔️ | The number for which to calculate the logarithm. |
Returns
log()
returns the natural logarithm of the input.null
if the argument is negative or null or can't be converted to areal
value.
Example
print result=log(5)
Output
result |
---|
1.6094379124341003 |