Here you can find the source of doubleEquals(double a, double b)
static public boolean doubleEquals(double a, double b)
//package com.java2s; public class Main { static double epsilon = 0.000000001; /** Returns true if the two doubles are within a small epsilon of * each other.//from www . ja va2s.c o m **/ static public boolean doubleEquals(double a, double b) { return Math.abs(a - b) < epsilon; } }