This is what I got to know about Floating point equals operation:
To actually compare floating-point numbers for equality, it is generally desirable to compare them within some tiny range of allowable differences; this range is often re‐garded as a tolerance or as epsilon.
Ie,
/** Compare two doubles, using default epsilon */ public static boolean equals(double a, double b) { return equals(a, b, EPSILON); } Is this the only method or is there any other way to compare the exact value floating point numbers without any tolerance.
==operator...