peter green p10link.net> writes: > > isnan should be a macro that is equivalent to checking all sizeof(x) bytes of > > for equality with 0xff. > I don't think so. I just checked IEEE 754 floating point spec and for For an uninitialized eprom or eeprom one would read all 1s which suits both the definition of the error and the way I suggested to check for it (I was assuming that there would be no other way to check). I did not know that one could use the inequality to self test for this. I also do not see why it would work. Once compiled there is no cast involved and the way I see it comparing 0xffffffff with 0xffffffff should yield true, not false. If the comparison actually performs a floating point substraction and fail, then I would understand, but the expected error would be NaN and not inequality! Peter -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist