Display lengths in feet and inches

This commit is contained in:
AJ
2021-10-05 09:25:39 -04:00
parent 28d53e6d38
commit 63fa51c5cd
3 changed files with 8 additions and 8 deletions

View File

@@ -38,11 +38,11 @@ namespace SawCut
public override string ToString()
{
var totalLength = Math.Round(Length, 4);
var remainingLength = Math.Round(RemainingLength, 4);
var totalLength = ArchUnits.FormatFromInches(Math.Round(Length, 4));
var remainingLength = ArchUnits.FormatFromInches(Math.Round(RemainingLength, 4));
var utilitation = Math.Round(Utilization * 100, 2);
return $"Length: {totalLength}\", {remainingLength}\" remaining, {Items.Count} items, {utilitation}% utilization";
return $"Length: {totalLength}, {remainingLength} remaining, {Items.Count} items, {utilitation}% utilization";
}
}
}