Index: dam engine/branches/Initial Source/Deltares.DamEngine.Data/Standard/ComputeDoubles.cs =================================================================== diff -u -r303 -r316 --- dam engine/branches/Initial Source/Deltares.DamEngine.Data/Standard/ComputeDoubles.cs (.../ComputeDoubles.cs) (revision 303) +++ dam engine/branches/Initial Source/Deltares.DamEngine.Data/Standard/ComputeDoubles.cs (.../ComputeDoubles.cs) (revision 316) @@ -96,5 +96,19 @@ return false; } + + /// + /// Determines whether the specified value is nearly zero. + /// + /// Uses a tolerance of 1e-3. + public static bool IsZero(this double aValue1) + { + if (Math.Abs(aValue1 - 0.0) < cEpsilon) + { + return true; + } + + return false; + } } } \ No newline at end of file