You know that every variable is stored in HEX in memory right... So, when you have (for example) TRISD, and you would assign the value 3 to it. You would be assigning the HEX value 0x03.I came up with this link, if the above is not what you're looking for:http://mathforum.org/library/drmath/view/54347.html