I was looking at the openjdk-1.7.0_25 source code and I have seen this method:
openjdk-1.7.0_25
/** * Returns {@code true} if the specified number is a * Not-a-Num
As far as I know NaN value is not equal to anything.So when you passed float v,It's never not equal to it self.
float v