Here you can find the source of floatEquals(float x, float y)
public static boolean floatEquals(float x, float y)
//package com.java2s; //License from project: Apache License public class Main { private static final float DELTA = 0.0000001f; public static boolean floatEquals(float x, float y) { return Math.abs(x - y) < DELTA; }/*from ww w . j a va 2s. com*/ }