how the hell did I not have mm
This commit is contained in:
parent
423fe5cb96
commit
51fb08810d
@ -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.";
|
||||||
|
@ -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},
|
||||||
|
Reference in New Issue
Block a user