Here you can find the source of hashCodeEps(double value)
public static int hashCodeEps(double value)
//package com.java2s; //License from project: Open Source License public class Main { private static final double EPSILON = 0.0001; public static int hashCodeEps(double value) { return Long.valueOf(Math.round(value / EPSILON)).hashCode(); }//from w ww. j av a 2s . co m }