3 ms·
What I particularly like is the use of the locale: LANG=en_GB.UTF-8 units "30 miles per gallon" "liters per 100km" reciprocal conversion *
by Symbiote 6y ago
What I particularly like is the use of the locale:
LANG=en_GB.UTF-8 units "30 miles per gallon" "liters per 100km"
reciprocal conversion
* 9.4160312
/ 0.10620186
LANG=en_US.UTF-8 units "30 miles per gallon" "liters per 100km"
reciprocal conversion
* 7.8404861
/ 0.12754311
(Although it is incomplete, as it only uses Imperial gallons for "gallon" for en_GB, although there are probably more English locales that use(d) the Imperial gallon than the US gallon.)