I have to check to see whether two double values are equal including magnitude and precision. I encounter a weird scenario where primitive double equals check is not consist
dont use == when comparing double or float values.
instead use Double.compare http://download.oracle.com/javase/6/docs/api/java/lang/Double.html
and Float.compare for floats.