Java examples for java.lang:double
hash Code double Eps
//package com.java2s; 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 w w . j a va2 s . c om }