convert_mass

使用 版本 下拉選單切換服務。 了解更多關於導航的資訊。
Apply to: ✅ Microsoft Fabric ✅ Azure Data Explorer ✅ Azure Monitor ✅ Microsoft Sentinel

將品質值從一個單位轉換成另一個單位。

語法

convert_mass( 從到的值,,)

深入瞭解 語法慣例。

參數

姓名 類型 必要 說明
價值 real ✔️ 要轉換的值。
從 string ✔️ 要轉換的單元。 如需可能的值,請參閱 轉換單位。
自 string ✔️ 要轉換的單元。 如需可能的值,請參閱 轉換單位。

轉換單位

  • 厘克
  • Decagram
  • Decigram
  • EarthMass
  • 粒紋
  • 克
  • 直方圖
  • 公斤
  • Kbpound
  • Kbtonne
  • LongHundredweight
  • LongTon
  • Megapound
  • Megatonne
  • 微克
  • 毫克
  • Nanogram
  • 盎司
  • 磅
  • ShortHundredweight
  • ShortTon
  • 動態資料欄位
  • SolarMass
  • 英石
  • 公噸

傳回

傳回從一個品質單位轉換成另一個品質單位的輸入值。 不合法的單位會傳回 null。

範例

下列範例示範如何使用 函 convert_mass() 式。

print result = convert_mass(1.2, 'Kilogram', 'Pound')

輸出

結果
2.64554714621853