is double Zero - Java java.lang

Java examples for java.lang:double

Description

is double Zero

Demo Code


//package com.java2s;

public class Main {
    private static final double ZERO_EPSILON = 0.000001;

    public static boolean isZero(double a) {
        return Math.abs(a) < ZERO_EPSILON;
    }/*from   w w w  . j ava  2s.co  m*/
}

Related Tutorials