Here you can find the source of areEqual(double one, double two)
public static boolean areEqual(double one, double two)
//package com.java2s; //License from project: Open Source License public class Main { private static final double ACCURACY = 1e-12; public static boolean areEqual(double one, double two) { return Math.abs(one - two) < ACCURACY; }/*from w w w.j a v a 2s. c o m*/ }