Java Number Equal areEqual(float left, float right)

Here you can find the source of areEqual(float left, float right)

Description

are Equal

License

Open Source License

Declaration

public static boolean areEqual(float left, float right) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static boolean areEqual(float left, float right) {
        return Math.abs(left - right) < 0.00001f;
    }/*from w  ww .j a v a 2  s  . c  om*/
}

Related

  1. areEqual(boolean c1, boolean c2)
  2. areEqual(double d1, double d2)
  3. areEqual(double one, double two)
  4. areEqual(final boolean aThis, final boolean aThat)
  5. areEqual(final char aThis, final char aThat)
  6. areEqual(int align, int mask)
  7. areEqual(int i, int j)
  8. areEqual(int o1, int o2)
  9. areEqual(T s1, T s2)