Java Double Number Equal doubleEquals(double d1, double d2, double epsilon)

Here you can find the source of doubleEquals(double d1, double d2, double epsilon)

Description

double Equals

License

Apache License

Declaration

public static boolean doubleEquals(double d1, double d2, double epsilon) 

Method Source Code

//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;
    }
}

Related

  1. doubleEquals(double a, double b)
  2. doubleEquals(double a, double b)
  3. doubleEquals(double a, double b)
  4. doubleEquals(double d1, double d2)
  5. doubleEquals(Double d1, Double d2)
  6. doubleEqualsWithTolerance(double a, double b, long maxFloatsBetween)