From 263ce9c0f4ae837db7a478d7b374883402200174 Mon Sep 17 00:00:00 2001 From: AJ Date: Thu, 14 Oct 2021 08:03:21 -0400 Subject: [PATCH] Round inches when converting to feet / inches --- SawCut/ArchUnits.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/SawCut/ArchUnits.cs b/SawCut/ArchUnits.cs index 1dd8d9d..d31867d 100644 --- a/SawCut/ArchUnits.cs +++ b/SawCut/ArchUnits.cs @@ -62,6 +62,8 @@ namespace SawCut var feet = Math.Floor(totalInches / 12.0); var inches = totalInches - (feet * 12.0); + inches = Math.Round(inches, 8); + if (feet > 0) { return $"{feet}'-{inches}\"";