According to this java.sun page == is the equality comparison operator for floating point numbers in Java.
==
However, when I type this code:
If you *have to* use floats, strictfp keyword may be useful.
http://en.wikipedia.org/wiki/strictfp