你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

convert_angle

将角度值从一个单位转换为另一个单位。

语法

convert_angle(,,)

详细了解语法约定

参数

名称 类型 必需 说明
value real ✔️ 要转换的值。
from string ✔️ 要从其进行转换的单元。 有关可能的值,请参阅转换单位
to string ✔️ 要转换为其的单元。 有关可能的值,请参阅转换单位

转换单位

  • Arcminute
  • Arcsecond
  • Centiradian
  • Deciradian
  • Gradian
  • Microdegree
  • Microradian
  • Millidegree
  • Milliradian
  • Nanodegree
  • Nanoradian
  • NatoMil
  • Radian
  • Revolution
  • Tilt

返回

返回从一种角度单位转换为另一种角度单位后的输入值。 无效的单位将返回 null

示例

print result = convert_angle(1.2, 'Degree', 'Arcminute')

输出

result
72