hexadecimal representation of a number.
Hi:
So the following code
value & 0xfff
means convert a single byte b to a 4-char
hex string with possible leading zero.
For example:
A byte has 8 bits so, for instance
1011 1101 would be converted to
8+2+1 = 11 = 0xB
8+4+1 = 13 = 0xD
which gives the literal
0x00BD?
value of 0xffff = 1 + 0xBD = 1 + (10x160) + 12 = 1 + 160 + 12 = 173?
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/javaprogrammingwithpassion?hl=en
-~----------~----~----~----~------~----~------~--~---