Taylor Campbell wrote:
NaN is *not* a numeric result; it's not a number! It represents the condition of a computation whose meaning is undefined; it's not a defined result.
Your statements about NaNs are correct in the context of mathematical numbers but not in the context of IEEE floating point numbers.
Regards, Alan -- Dr Alan Watson Centro de Radioastronomía y Astrofísica Universidad Astronómico Nacional de México