Hi William,
I agree with you, a careless programmer can make such a mistake
while coding / debugging hence such a provision is provided in
situations wherein one needs to find out whether a NaN value
is occured during a programme.
Use the static Float.isNaN( float ) method to detect NaN values.
Ravindra Mohan.