cambio gestione epsilon per valori gauges (x10)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user