Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
In this article
Applies to: ✅ Azure Data Explorer ✅ Azure Monitor ✅ Microsoft Sentinel
Convert a volume value from one unit to another.
convert_volume(
value,
from,
to)
Learn more about syntax conventions.
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. |
- 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 the input value converted from one volume unit to another. Invalid units return null
.
print result = convert_volume(1.2, 'CubicMeter', 'AcreFoot')
Output
result |
---|
0.0009728568 |