Binary To Hex
Binary To Hex
32 16 8 4 2 1
0
29 is less than 32 so put a 32 in the first
column.
4
Converting Denary to Binary
For example to convert the number 29 write the column headings:
32 16 8 4 2 1
0 1
29 is more than 16 so put a 1 in the 16
column and find out the remainder.
29 – 16 = 13
5
Converting Denary to Binary
For example to convert the number 29 write the column headings:
32 16 8 4 2 1
0 1 1
13 is more than 8 so put a 1 in the 8
column and find out the remainder.
13 – 8 = 5
6
Converting Denary to Binary
For example to convert the number 29 write the column headings:
32 16 8 4 2 1
0 1 1 1
5 is more than 4 so put a 1 in the 4
column and find out the remainder.
5–4= 1
7
Converting Denary to Binary
For example to convert the number 29 write the column headings:
32 16 8 4 2 1
0 1 1 1 0
1 is less than 2 so put a 0 in the 2 column.
8
Converting Denary to Binary
For example to convert the number 29 write the column headings:
32 16 8 4 2 1
0 1 1 1 0 1
1 is equal to the 1 column so put a 1 in the 1 column.
Add up the columns to check you have the correct
answer.
16 + 8 + 4 + 1 = 29
9
Convert the Denary Numbers into Binary
32 16 8 4 2 1 54 – 32 = 22
54 = 1 1 0 1 1 0 22 – 16 = 6
6–4=2
2–2=0
32 + 16 + 4 + 2 = 54
32 16 8 4 2 1
25 = 0 1 1 0 0 1
25 – 16 = 9
9–8=1
16 + 8 + 1 = 25
10
Convert the following denary numbers to binary
A. 2 G. 35
B. 5 H. 63
C. 9 I. 98
D. 10 J. 110
E. 12 K. 140
F. 15 L. 230
Can you remember this number
How easy was it to remember the number?
This number only had 14 digits in it. What would it be like if it had to have many more digits?
10110010111010
12
What are Hexadecimal Numbers?
Denary/Decimal Hexadecimal (Hex)
• This uses the Base 10 system. • This is a quick and easy way to write
down binary values in a more
manageable way.
• This uses a Base 16 number system.
0123456789 0123456789ABCDEF
Binary • They could have used anything to
• This uses the Base 2 system. represent the last 6 characters
(shapes, names etc.) but they chose
01 letters as it is easier to type.
13
Converting to Hexadecimal
It is easy to convert from binary to hex.
This is because hex is simply a shorthand version of binary numbers.
Start from the “Least Significant Bit” (LSB), which means start from the right hand side.
Split the binary number into groups of 4 bits (nibbles).
14
Converting to Hexadecimal
110 1100 1001 0100 0011
6 C 9 4 3
Start from the right hand group.
Convert each group of 4 bits into denary.
If the number is under 10 then the number is the same in hex.
If the number is 10 or more than use the letters A, B, C, D, E and F to represent them.
15
Convert Binary to Hex
101101101001111010
16
Convert the following
Hex to Binary to Decimal Decimal to Binary to Hex
A. A A. 56
B. E B. 25
C. 8 C. 19
D. 3A D. 40
E. C6 E. 115
F. 7F F. 135
G. F5 G. 201
H. 17 H. 255
Convert 8 bit binary numbers to denary, and to convert
from Hexadecimal to binary
• Convert 4 bit binary numbers • Convert 8 bit binary numbers to
to denary with the help of a denary without a table and convert
4 bit denary numbers into binary.
table.
• Convert double digit hexadecimal
• Convert single digit hexadecimal numbers into binary and vice versa.
numbers into binary and vice versa.
• Convert 8 bit binary numbers to • Can explain why computers use
denary without a table and convert a base 2 system rather than a
4 bit denary numbers into binary. base 10 system.
• Convert double digit hexadecimal
numbers into binary and denary • Explain how an overflow can
numbers and vice versa. cause errors