convert_temperature

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

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

语法

convert_temperature(,,)

详细了解语法约定

参数

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

转换单位

  • DegreeCelsius
  • DegreeDelisle
  • DegreeFahrenheit
  • DegreeNewton
  • DegreeRankine
  • DegreeReaumur
  • DegreeRoemer
  • 开尔文
  • MillidegreeCelsius
  • SolarTemperature

返回

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

例子

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

print result = convert_temperature(1.2, 'Kelvin', 'DegreeCelsius')

输出

结果
-271.95