According to this java.sun page == is the equality comparison operator for floating point numbers in Java.
==
However, when I type this code:
One way to reduce rounding error is to use double rather than float. This won't make the problem go away, but it does reduce the amount of error in your program and float is almost never the best choice. IMHO.