how the hell did I not have mm

This commit is contained in:
Adam R Grey 2023-12-05 21:32:20 -05:00
parent 423fe5cb96
commit 51fb08810d
2 changed files with 9 additions and 1 deletions

View File

@ -115,7 +115,7 @@ namespace vassago.Conversion
} }
else else
{ {
return $"{String.Format("{0:G4}", accumulator)} {normalizedDestUnit}"; return $"{String.Format("{0:G4}", accumulator)} {normalizedDestUnit}s";
} }
} }
return "dimensional analysis failure - I know those units but can't find a path between them."; return "dimensional analysis failure - I know those units but can't find a path between them.";

View File

@ -36,6 +36,13 @@
"metre" "metre"
] ]
}, },
{
"canonical":"mm",
"aliases": [
"millimeter",
"millimetre"
]
},
{ {
"canonical":"km", "canonical":"km",
"aliases": [ "aliases": [
@ -230,6 +237,7 @@
{"item1":"mi", "item2":"ft", "factor":5280}, {"item1":"mi", "item2":"ft", "factor":5280},
{"item1":"m", "item2":"in", "factor":39.37008}, {"item1":"m", "item2":"in", "factor":39.37008},
{"item1":"m", "item2":"cm", "factor":100}, {"item1":"m", "item2":"cm", "factor":100},
{"item1":"cm", "item2":"mm", "factor":10},
{"item1":"km", "item2":"mi", "factor":0.6213712}, {"item1":"km", "item2":"mi", "factor":0.6213712},
{"item1":"ft", "item2":"in", "factor":12}, {"item1":"ft", "item2":"in", "factor":12},
{"item1":"yd", "item2":"ft", "factor":3}, {"item1":"yd", "item2":"ft", "factor":3},