Bemærk
Adgang til denne side kræver godkendelse. Du kan prøve at logge på eller ændre mapper.
Adgang til denne side kræver godkendelse. Du kan prøve at ændre mapper.
Switch services using the Version drop-down list. Learn more about navigation.
Applies to: ✅ Microsoft Fabric ✅ Azure Data Explorer ✅ Azure Monitor ✅ Microsoft Sentinel
Converts 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.
Examples
The following example demonstrates how to use the convert_volume() function.
print result = convert_volume(1.2, 'CubicMeter', 'AcreFoot')
Output
| result |
|---|
| 0.0009728568 |