Try this;
Code:if temp.8 = 1 then ' If bit8 of temperature is set then its negative sign = "-" ' Indicate temperature is NEGATIVE temp.lowbyte = temp.lowbyte ^ 255 ' Reverse the bits of the lowbyte of TEMP sign = "+" ' Indicate temperature is POSITIVE endif
Bookmarks