Added explicit comparison method for floats