According to this java.sun page == is the equality comparison operator for floating point numbers in Java.
==
However, when I type this code:
the correct way to test floats for 'equality' is:
if(Math.abs(sectionID - currentSectionID) < epsilon)
where epsilon is a very small number like 0.00000001, depending on the desired precision.