Java Epsilon epsilonZero(double input)

Here you can find the source of epsilonZero(double input)

Description

epsilon Zero

License

Apache License

Return

true if input is ~== 0

Declaration

public static boolean epsilonZero(double input) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    /** @return true if input is ~== 0*/
    public static boolean epsilonZero(double input) {
        return Math.abs(input) < 0.000001;
    }/*ww w.j  a v  a 2  s.  c o  m*/
}

Related

  1. epsilonEquals(final float x, final float y)
  2. epsilonEquals(float f1, float f2, float epsilon)
  3. epsilonEquals(float p_180185_0_, float p_180185_1_)
  4. epsilonEquals(float v1, float v2)
  5. epsilonFloor(double d)