@Test public void testDoubleEquals3() { final double a = 0.00001; final double b = 0.00001; assertTrue(Misc.doubleEquals(a, b, 0.00001)); }
public static boolean doubleEquals(final double a, final double b, final double epsilon) { final double diff = Math.abs(a - b); return diff < epsilon || (Double.isNaN(diff) && a == b); }
Misc { public static boolean doubleEquals(final double a, final double b, final double epsilon) { final double diff = Math.abs(a - b); return diff < epsilon || (Double.isNaN(diff) && a == b); } }
Misc { public static boolean doubleEquals(final double a, final double b, final double epsilon) { final double diff = Math.abs(a - b); return diff < epsilon || (Double.isNaN(diff) && a == b); } private  Misc(); }
Misc { public static boolean doubleEquals(final double a, final double b, final double epsilon) { final double diff = Math.abs(a - b); return diff < epsilon || (Double.isNaN(diff) && a == b); } private  Misc(); static boolean containsNulls(final Collection c); static boolean doubleEquals(final double a, final double b, final double epsilon); static boolean doubleArrayEquals(final double[] a, final double[] b, final double epsilon); }
Misc { public static boolean doubleEquals(final double a, final double b, final double epsilon) { final double diff = Math.abs(a - b); return diff < epsilon || (Double.isNaN(diff) && a == b); } private  Misc(); static boolean containsNulls(final Collection c); static boolean doubleEquals(final double a, final double b, final double epsilon); static boolean doubleArrayEquals(final double[] a, final double[] b, final double epsilon);  }