Here you can find the source of epsilonCeiling(double value)
public static long epsilonCeiling(double value)
//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*/ }