convert_temperature
In this article
Applies to: ✅ Azure Data Explorer ✅ Azure Monitor ✅ Microsoft Sentinel
Convert a temperature value from one unit to another.
convert_temperature(
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. |
- DegreeCelsius
- DegreeDelisle
- DegreeFahrenheit
- DegreeNewton
- DegreeRankine
- DegreeReaumur
- DegreeRoemer
- Kelvin
- MillidegreeCelsius
- SolarTemperature
Returns the input value converted from one temperature unit to another. Invalid units return null
.
print result = convert_temperature(1.2, 'Kelvin', 'DegreeCelsius')
Output
result |
---|
-271.95 |