Converts input data from a known unit to another (e.g. meters -> miles
, hours -> minutes
). Can also deal with complex units and abbreviations like km/h -> mph
.
- meter
- mile
- nautical_mile
- yard
- hour
Abbreviation | Expansion |
---|---|
km |
kilometer |
m |
meter |
kt |
knots |
h |
hour |
min |
minute |
s |
second |
sec |
second |
n.m. |
nautical_mile |
yd. |
`yard |
Abbreviation | Expansion |
---|---|
mph |
mile/hour |
knots |
nautical_mile/hour |
Depends on polymer-unit-prefix that handles the quantization of units like milli-/mi
<unit-convert from="hour" to="minute" value="24" result="{{result}}" />
<!-- result: 1440 -->
<unit-convert-complex from="mph" to="km/h" value="70" decimals="2" result="{{result}}" />
<!-- result: 112.65 -->