Here you can find the source of doubleEquals(double d1, double d2, double epsilon)
public static boolean doubleEquals(double d1, double d2, double epsilon)
//package com.java2s; //License from project: Apache License public class Main { public static boolean doubleEquals(double d1, double d2) { return Math.abs(d1 - d2) <= Double.MIN_VALUE; }/*www. j a va2 s . c om*/ public static boolean doubleEquals(double d1, double d2, double epsilon) { return Math.abs(d1 - d2) <= epsilon; } }