Hexadecimal System
Hexadecimal System
Using the same method as denary and binary, this gives the
headings of 160, 161 , 162, 163 and so on.
The typical headings for a hexadecimal number with five digits
would be:
Bytes are typically 8 bits, and can store the values 0 – 255 (0000 0000 –
1111 1111 in binary).
For people, expressing numbers in binary is not convenient. You are not
going to turn around to your classmate and tell him that your phone
number is 101 101 101 001 010 001 010 for obvious reasons.
Imagine having to try and work with that on a daily basis. So a more
convenient expression is needed for the humans.
Since a byte is 8 bits, it makes sense to divide that up into two
groups, the top 4 bits and the low 4 bits.
Since 4 bits gives you the possible range from 0 – 15, a base 16
system is easier to work with, especially if you are only familiar with
alphanumeric characters.
This way you can simply use 2 hex values to represent a byte and
have it work cleanly.
So if you have a hex value of “CE”, you can easily determine that
(12*161 ) + (14*160) = 206 in decimal, and can easily write it out in
binary as 1100 1110.
Trying to convert from binary would require that you know what
each place holder represents, and add all the values together (128 +
64 + 8 + 4 + 2 = 206).
It is much easier to work with binary through hex than any other
base system.
1. Binary to Hexadecimal
2. Hexadecimal to Binary
3. Hexadecimal to Decimal
4. Decimal to Hexadecimal
Converting from binary to hexadecimal is a fairly easy process.
Starting from the right and moving left, split the binary number into
groups of 4 bits.
If the last group has less than 4 bits, then simply fill in with 0s from
the left.
8 4 2 1 8 4 2 1
0 1 0 1 0 1 1 1
0x8 1x4 0x2 1x1 0x8 1x4 1x2 1x1
0 4 0 1 0 4 2 1
0+4+0+1=5 0+4+2+1=7
5 7
8 4 2 1 8 4 2 1
1 1 1 0 0 0 0 1
1x8 1x4 1x2 0x1 0x8 0x4 0x2 1x1
8 4 2 0 0 0 0 1
8+4+2+0=14 0+0+0+1=1
14 -> E 1
(𝐵𝐸1)16
10000111111101
Using the data from the Numeral Systems Conversion Table, simply
take each hexadecimal digit and write down the 4-bit code which
corresponds to the digit.
Convert (45𝐴)16 to binary
Using the above Numeral Systems Conversion Table, find the 4-bit
code for each digit:
0100 0101 1010
Answer = (1114)10
Convert (𝐶8𝐹)16 to decimal
And one of the first things a new computer user should always
do is make sure their display can be set to what's called "24-bit"
or "True Color" (for those 16-million plus possible colors).
But all those extra bits are not used for increasing the number of
colors! Why? Well, since the human eye is only capable of
distinguishing something like 7 million or so different colors that
would be a real waste of technology!
Hexadecimal color values are supported in all major
browsers.