次の方法で共有


convert_temperature

適用対象: ✅Microsoft FabricAzure データ エクスプローラーAzure MonitorMicrosoft Sentinel

温度値を 1 つの単位から別の単位に変換します。

構文

convert_temperature( value,from,宛先)

構文規則について詳しく知る。

パラメーター

件名 タイプ 必須 説明
価値 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