From 49de435babe5cc5b45a78ce2a0161d5fd24bedee Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Wed, 14 Oct 2020 09:03:04 +0200 Subject: [PATCH] cambio gestione epsilon per valori gauges (x10) --- Thermo.Active.Model/DTOModels/ThProd/DTOThermoProd.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Thermo.Active.Model/DTOModels/ThProd/DTOThermoProd.cs b/Thermo.Active.Model/DTOModels/ThProd/DTOThermoProd.cs index 27ce415f..5ae1dd5e 100644 --- a/Thermo.Active.Model/DTOModels/ThProd/DTOThermoProd.cs +++ b/Thermo.Active.Model/DTOModels/ThProd/DTOThermoProd.cs @@ -22,7 +22,8 @@ namespace Thermo.Active.Model.DTOModels.ThProd if (!Category.Equals(item.Category)) return false; - if (Math.Round(Math.Abs(Value - item.Value), 1) >= Constants.EPSILON) + // poiché il vuoto è con 2 decimali serve 10 volte risoluzione risp altro... + if (Math.Round(Math.Abs(Value - item.Value), 2) >= Constants.EPSILON / 10) return false; if (Name != item.Name) return false;