Float: equals doesn’t use Float.compare for field foo

See the answer for the similar problem with Double.