使用 版本 下拉選單切換服務。 了解更多關於導航的資訊。
Apply to: ✅ Microsoft Fabric ✅ Azure Data Explorer ✅ Azure Monitor ✅ Microsoft Sentinel
使用公式 degrees = (180 / PI ) * angle_in_radians,將弧度的角度值轉換成以度為單位的值。
語法
degrees(
弧度)
深入瞭解 語法慣例。
參數
| 姓名 | 類型 | 必要 | 描述 |
|---|---|---|---|
| 弧度 | real |
✔️ | 要轉換成度的角度,以弧度為單位。 |
傳回
針對以弧度指定的角度,傳回對應的角度 (以度為單位)。
範例
下列範例示範如何將弧度轉換成度。
print degrees0 = degrees(pi()/4), degrees1 = degrees(pi()*1.5), degrees2 = degrees(0)
輸出
| degrees0 | degrees1 | degrees2 |
|---|---|---|
| 45 | 270 | 0 |