Here you can find the source of doubleEquals(double d1, double d2)
public static boolean doubleEquals(double d1, double d2)
//package com.java2s; //License from project: Apache License public class Main { public static boolean doubleEquals(double d1, double d2) { return Double.compare(d1, d2) == 0; }//from www . j ava2 s .c o m }