public static void AssertSameValue(double f1, double f2) { var diff = System.Math.Abs(f1-f2); if (diff>0.0000001f) { throw new System.Exception("ExpressionSolverTest failed"); } }