Java Epsilon epsilonCeiling(double value)

Here you can find the source of epsilonCeiling(double value)

Description

Similar to Math.ceil(value), but adjusts small numerical rounding errors +- epsilon.

License

Open Source License

Declaration

public static long epsilonCeiling(double value) 

Method Source Code

//package com.java2s;

public class Main {
    /** Similar to Math.ceil(value), but adjusts small numerical rounding errors +- epsilon. */
    public static long epsilonCeiling(double value) {
        double epsilon = 0.0000001;
        return (long) Math.ceil(value - epsilon);
    }/*from   w w  w.ja  v  a2 s.c  om*/
}

Related

  1. epsilon(double v)
  2. epsilonEquals(final double a, final double b, final double epsilon)
  3. epsilonEquals(final float x, final float y)
  4. epsilonEquals(float f1, float f2, float epsilon)
  5. epsilonEquals(float p_180185_0_, float p_180185_1_)