Java tutorial
//package com.java2s; public class Main { public static boolean isDoubleEqual(double a, double b) { return Math.abs(a - b) < 1E-8; } }