Java tutorial
//package com.java2s; public class Main { private static boolean isClose(float f, float f2) { return Math.abs(f - f2) < 0.001f; } }