What are benefits that hexadecimal provides? And is it really octal is less common than hexadecimal?
|
Well, I mean, the computer itself doesn't store any values in hexadecimal, it stores them as binary. However, we do choose to represent them as hexadecimal digits, for one main reason -- it's the easiest, most concise way to represent bytewise data:
Octal would require grouping of digits into 3, which would not allow for separation at byte level:
Note that the most significant digit will never be greater than 3. |
||||
|
|
|
From wikipedia:
|
|||
|
|
|
As said before, everything is stored in binary. Think; the IPv4-adress 192.168.0.1 in binary it would be 11000000.10100000.00000000.00000001. Imagine an IPv6-address written in binary. It would be unpractical. |
|||
|
|