Fix #1795. New support for conversion based units with offsets, like fahrenheit.

This commit is contained in:
Dion Moult
2021-10-14 12:46:01 +11:00
parent 1fa1a9e3d3
commit 3d0d2ec8fb
3 changed files with 63 additions and 18 deletions
@@ -192,9 +192,14 @@ si_conversions = {
"hour": 3600,
"day": 86400,
"btu": 1055.056,
"fahrenheit": 1.8,
}
si_offsets = {
"fahrenheit": -459.67,
}
imperial_types = {
"thou": "LENGTHUNIT",
@@ -233,6 +238,7 @@ imperial_types = {
"hour": "TIMEUNIT",
"day": "TIMEUNIT",
"btu": "ENERGYUNIT",
"fahrenheit": "THERMODYNAMICTEMPERATUREUNIT",
}