[verified] feat: add configurable results length units
Build CutList image / build-and-push (push) Successful in 31s
Build CutList image / build-and-push (push) Successful in 31s
Default cut results to total-inch mixed fractions, allow switching to feet and inches, and separate part names from lengths visually.
This commit is contained in:
@@ -80,5 +80,13 @@ namespace CutList.Core.Formatting
|
||||
return $"{inches}\"";
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Formats a measurement as a mixed fraction of total inches without converting to feet.
|
||||
/// </summary>
|
||||
public static string FormatInches(double totalInches)
|
||||
{
|
||||
return $"{FormatHelper.ConvertToMixedFraction(totalInches)}\"";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user