I think you are getting "different" for the 3.2 because a computer's floating point unit works with base 2 binary and 0.2 can't be represented precisely in binary, it is called a repeater fraction. In base-2 only numbers with denominators that are powers of 2 are terminating, which I think is only .25, .50, and .75, which is why 6.5 shows up as "same".
Hope this helps, but there may be better minded people out there that can give you a better explanation perhaps.
Float and double values are not integers, but rather floating point numbers. The Java
integer types are: byte, short, int, long (and char - 16 bits unsigned). In both cases
your code is comparing a float value to a double, as the compiler sees 3.2f as a float
and 3.2 (without the f) as a double. I suspect the precision of the compare logic has
something to do with the different results. Someone else may comment further.