Editar

Partilhar via


convert_volume

Applies to: ✅ Microsoft FabricAzure Data ExplorerAzure MonitorMicrosoft Sentinel

Convert a volume value from one unit to another.

Syntax

convert_volume(value,from,to)

Learn more about syntax conventions.

Parameters

Name Type Required Description
value real ✔️ The value to be converted.
from string ✔️ The unit to convert from. For possible values, see Conversion units.
to string ✔️ The unit to convert to. For possible values, see Conversion units.

Conversion units

  • AcreFoot
  • AuTablespoon
  • BoardFoot
  • Centiliter
  • CubicCentimeter
  • CubicDecimeter
  • CubicFoot
  • CubicHectometer
  • CubicInch
  • CubicKilometer
  • CubicMeter
  • CubicMicrometer
  • CubicMile
  • CubicMillimeter
  • CubicYard
  • Decaliter
  • DecausGallon
  • Deciliter
  • DeciusGallon
  • HectocubicFoot
  • HectocubicMeter
  • Hectoliter
  • HectousGallon
  • ImperialBeerBarrel
  • ImperialGallon
  • ImperialOunce
  • ImperialPint
  • KilocubicFoot
  • KilocubicMeter
  • KiloimperialGallon
  • Kiloliter
  • KilousGallon
  • Liter
  • MegacubicFoot
  • MegaimperialGallon
  • Megaliter
  • MegausGallon
  • MetricCup
  • MetricTeaspoon
  • Microliter
  • Milliliter
  • OilBarrel
  • UkTablespoon
  • UsBeerBarrel
  • UsCustomaryCup
  • UsGallon
  • UsLegalCup
  • UsOunce
  • UsPint
  • UsQuart
  • UsTablespoon
  • UsTeaspoon

Returns

Returns the input value converted from one volume unit to another. Invalid units return null.

Example

print result = convert_volume(1.2, 'CubicMeter', 'AcreFoot')

Output

result
0.0009728568