Allow length input as fraction

This commit is contained in:
AJ
2020-06-17 07:33:38 -04:00
parent 6aeadc458e
commit 84cce815e5

View File

@@ -19,9 +19,11 @@ namespace CutToLength
{ {
try try
{ {
var input = Fraction.ReplaceFractionsWithDecimals(LengthInputValue);
double d; double d;
if (double.TryParse(LengthInputValue, out d)) if (double.TryParse(input, out d))
{ {
LengthInputValue += "\""; LengthInputValue += "\"";
return d; return d;