Hi, I accidentally stuff the value of 0xFFFF into a float variable (fVal). My emulator shows me its value is -1#nan (not a number) and my limit clipping code did not work on this value ie, if (fVal > fMax) fVal = fMax; else if (fVal < fMin) fVal = fMin; You'd think that the fVal would always be inside the limits of fMin and fMax for all values of fVal, but the code did not work when fVal contains the -1#nan value. How should I handle this? Is this a compiler bug? Thanks Andy
although I can't find any documentation for it in my manual Page 243 in the Cx51 User's Guide. Jon
"Page 243 in the Cx51 User's Guide." Now, wouldn't it be nice if it were in the index as well? Stefan