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