Java tutorial
//package com.java2s; //License from project: Open Source License public class Main { public final static float EPSILON = 10e-5f; public final static boolean epsilonEq(float f1, float f2) { return Math.abs(f1 - f2) < EPSILON; } }