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

convert_length

适用于:✅Azure 数据资源管理器Azure Monitor✅ Sentinel

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

语法

convert_length(,,)

详细了解语法约定

参数

客户 类型​​ 必需 DESCRIPTION
价值 real ✔️ 要转换的值。
起始 string ✔️ 要从其进行转换的单元。 有关可能的值,请参阅转换单位
string ✔️ 要转换为其的单元。 有关可能的值,请参阅转换单位

转换单位

  • AstronomicalUnit
  • 厘米
  • 供应链
  • DataMile
  • Decameter
  • 分米
  • DtpPica
  • DtpPoint
  • 捉摸
  • Hectometer
  • 英寸
  • KilolightYear
  • 公里
  • 千秒差距
  • LightYear
  • MegalightYear
  • Megaparsec
  • 计量
  • 微英寸
  • 千分尺
  • 密耳
  • 英里
  • 毫米
  • 纳米
  • NauticalMile
  • 秒差距
  • PrinterPica
  • PrinterPoint
  • 束缚
  • SolarRadius
  • Twip
  • UsSurveyFoot
  • 院子 里

返回

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

例子

下面的示例演示如何使用该 convert_length() 函数。

print result = convert_length(1.2, 'Meter', 'Foot')

输出

结果
3.93700787401575