

终止支持通知： 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)。

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

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

以弧度的形式返回 x 轴正方向与由两个参数定义的 (x,y) 点之间的角度。逆时针的角，角度为正数（上半平面，y > 0），顺时针的角，角度为负数 在代入函数之前，`Decimal` 参数舍入到双精度。

示例：`atan(1, 0)` = 1.5707963267948966


| 参数类型 | 参数类型 | 结果 | 
| --- | --- | --- | 
| `Int` / `Decimal` | `Int` / `Decimal` | `Decimal` (双精度)，x 轴和指定的 (x,y) 点之间的角度 | 
| `Int` / `Decimal` / `String` | `Int` / `Decimal` / `String` | `Decimal`，所描述点的反正切值。如果字符串无法转换，则结果为 `Undefined`。 | 
| 其他值 | 其他值 | `Undefined`. | 