Mostly it makes teh visual represention of the bits easier to see. Example is when entering rgb colors, 0x00c0c0c0 is easy to visulize as grey each byte has an equal value or 0x00808080, a darker shade of grey. 0x00ff0000 is pure red whereas the same thing in decimal 16711680 provides no clue.<br>
<br>
A long value is four bytes. Each byte is a hex nibble or two hex characters. This way it is easy to see that in 0x0000ff00 has all bits of the second byte on.<br>
<br>
It also represents numbers irrespective of sign. 0xffffffff means all bits are set, regardless if you interpret as a signed number ( -1 ) or as an unsigned long ( 4294967295 )<br>
<br>
HTH
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.