Round inches when converting to feet / inches

This commit is contained in:
AJ
2021-10-14 08:03:21 -04:00
parent 495abe8cc3
commit 263ce9c0f4

View File

@@ -62,6 +62,8 @@ namespace SawCut
var feet = Math.Floor(totalInches / 12.0); var feet = Math.Floor(totalInches / 12.0);
var inches = totalInches - (feet * 12.0); var inches = totalInches - (feet * 12.0);
inches = Math.Round(inches, 8);
if (feet > 0) if (feet > 0)
{ {
return $"{feet}'-{inches}\""; return $"{feet}'-{inches}\"";