From a58a29833ace330d35f68cc1f617c7433430a25a Mon Sep 17 00:00:00 2001 From: AJ Date: Wed, 20 Nov 2019 13:46:11 -0500 Subject: [PATCH] Fixed decimal errors. --- CutToLength/Bin.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CutToLength/Bin.cs b/CutToLength/Bin.cs index 59c39d4..4cd60a7 100644 --- a/CutToLength/Bin.cs +++ b/CutToLength/Bin.cs @@ -22,13 +22,13 @@ namespace CutToLength { get { - return Items.Sum(i => i.Length) + Spacing * Items.Count; + return Math.Round(Items.Sum(i => i.Length) + Spacing * Items.Count, 8); } } public double RemainingLength { - get { return Length - UsedLength; } + get { return Math.Round(Length - UsedLength, 8); } } public double Utilization