Here you can find the source of areEqual(float left, float right)
public static boolean areEqual(float left, float right)
//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*/ }