

终止支持通知： Amazon 将于 2025 年 12 月 15 日终止对的支持 Amazon IoT Analytics。2025 年 12 月 15 日之后，您将无法再访问 Amazon IoT Analytics 控制台或 Amazon IoT Analytics 资源。有关更多信息，请参阅[Amazon IoT Analytics 终止支持](https://docs.amazonaws.cn/iotanalytics/latest/userguide/iotanalytics-end-of-support.html)。

本文属于机器翻译版本。若本译文内容与英语原文存在差异，则一律以英文原文为准。

# ln(Decimal)
<a name="math-ln"></a>

返回参数的自然对数。在代入函数之前，`Decimal` 参数舍入到双精度。

示例：`ln(e)` = 1


| 参数类型 | 结果 | 
| --- | --- | 
|  `Int`  |  `Decimal` (双精度)，参数的自然对数。  | 
|  `Decimal`  |  `Decimal` (双精度)，参数的自然对数  | 
|  `Boolean`  |  `Undefined`.  | 
|  `String`  |  `Decimal` (双精度)，参数的自然对数。如果字符串无法转换为 `Decimal`，则结果为 `Undefined`。  | 
|  数组  |  `Undefined`.  | 
|  对象  |  `Undefined`.  | 
|  Null  |  `Undefined`.  | 
|  未定义  |  `Undefined`.  | 