Fixed decimal errors.
This commit is contained in:
@@ -22,13 +22,13 @@ namespace CutToLength
|
|||||||
{
|
{
|
||||||
get
|
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
|
public double RemainingLength
|
||||||
{
|
{
|
||||||
get { return Length - UsedLength; }
|
get { return Math.Round(Length - UsedLength, 8); }
|
||||||
}
|
}
|
||||||
|
|
||||||
public double Utilization
|
public double Utilization
|
||||||
|
|||||||
Reference in New Issue
Block a user