Hexadecimal
Hexadecimal
Data Representation
1.1 Number Systems
Unit
Objectives
(Year 10)
Silent Starter 1
c a n re a d hex ,
he de a d
If you and t ex ?
a n re a d h
how many c
Silen
Star t
ter
Silent Starter 2
Silen
Star t
ter
Feedback Silent Starter
2
It is important
The to remember that computers do not use Imaghex.
se a This is the data in i n e th
ad d re i s is
ress each address… rr b
o i
r: na
es more useful number n ehumans
have afor ry!!to
Where binary and hex used in
It is simply a much
instead of binary.If th e m emo ry lo ca ti o n w a s system
to !! use
10 10
10 | 1111 | 1By When you 0
00 | 0001 | representing
1011 | 1001 | computers?
1010 | 01
w o add
ant tHex
As a programmer you are less likely to make mistakes colours with
with Hex than
q 1AFC
uo te: B 5 A 4 olour to a codes, cyou can ou
binary. It is far ea sier to
get w ebsite y as
many
t re membecrath isshe
to s cre e n (b u n u
r w il l dis pla y the hex value in a different
ry ).
Therefo re a co mp u te
w this, it re a ll y w o rk s in b colour
to s h o shades…
been programmed names.
Silen
Star t
ter
Keywords: Number Representation
Key Word Definition
Binary a system of numerical notation that has 2 rather than 10 as a base.
Denary less common term for decimal.
Hexadecimal relating to or using a system of numerical notation that has 16 rather than
10 as its base.
2’s is the most common method of representing signed integers on computers,
Complement and more generally, fixed point binary values. In this scheme, if the ...
Sign and Sign-magnitude notation is the simplest and one of the most common
Magnitude methods of representing positive and negative numbers either side of zero,
(0). If the sign bit is “0”, this means the number is positive in value. If the
sign bit is “1”, then the number is negative in value.
Underflow the generation of a number that is too small to be represented in the
device meant to store it.
Overflow An error, which can occur when a calculation is run but the computer is
unable to store the answer correctly.
Keyw
o rds
Hexadecimal Intro
Decima Hex
Decimal Hex Decima Hex
Presentation l
l
Mode Needed 1 1
10 A 19 13
2 2
11 B 20 14
3 3
21 15
12 C
4 4
22 16
13 D
5 5
23 17
14 E
6 6
24 18
15 F
7 7
25 19
16 10
8 8
26 1A
17 11
9 9
27 1B
Teac 18 12
Expl her 28 1C
anat
i on
Hexadecimal to Denary
409 256 16 1
6
1 5 C A
Step 1: Multiply the previous column by 16 to get the
next.
Teac
Expl her
anat
i on
Hexadecimal to Denary
409 256 16 1
6
1 5 C A
Step 2: Multiply the number by its header
409 256 16 1
6
1 3: Complete
Step 5 C
/ solve A
the
equation
(1 x 4096) + (5 x 256) + (C x 16) + (A x
1) = ?
(1 x 4096) + (5 x 256) + (12 x 16) + (10
Teac
Expl her x 1) = ?
anat
i on (4096) + (1280) + (192) + (10 )
=?
=
Hexadecimal to Denary
Presentation
Mode Needed How do you convert 2D8E into
denary?
4096 256 16 1
2 D 8 E
Presentation
Mode Needed How do you convert 2D8E into
denary?
4096 256 16 1
2 D 8 E
409 25
ABC1 6 6
16 1
409 25
F121 6 6
16 1
CD19
409 25
16 1
6 6
409 25
40FA 6 6
16 1
Task
Feedback: Task 1
Number to Convert Working Area Final Answer
409 25
ABC1 6 6
16 1
43 969
A B C 1
F121
409 25
6 6
16 1 61 729
CD19
409 25
6 6
16 1 52 505
40FA
409 25
6 6
16 1
16 634
Prog
ress
Chec
k
Task 2: Hex to Decimal Easy
Number to Convert Working Area Final Answer
6553
EF245 6
4096 256 16 1
AC12A
6553
4096 256 16 1
6
6553
BCDED 6
4096 256 16 1
6553
D234A 6
4096 256 16 1
6553
ACD121 ?
6
4096 256 16 1
Feedback: Task 5
Number to Convert Working Area Final Answer
6553
EF245 6
4096 256 16 1
979 525
AC12A
6553
6
4096 256 16 1
704 810
6553
BCDED 6
4096 256 16 1
773 613
6553
D234A 6
4096 256 16 1
861 002
6553 11 325
Prog
Chec
ress
k
ACD121 ?
6
4096 256 16 1
729
Denary to Hex
Presentation
Mode Needed How do you convert 1128 into hex?
RESULT
RESULT REMAINDER (in
DIVISION (INTEGE
(DECIMAL) HEXADECIMAL)
R)
1128 / 16 70 .5 8
70 / 16 4 .375
Step
Step1. 2. 6
Divide
Splitby
the
Step 3.16.
Convert
integer and
4 / 16 0 .25
the ‘decimal’4 into
decimal part of the
HEX, multiply by
Teac
Final Answer 468
answer.
16.
Expl her
anat
i on
Denary to Hex
Presentation
Mode Needed
How do you convert 188 into
hex?
RESULT RESULT REMAINDER (in
DIVISION
(INTEGER) (DECIMAL) HEXADECIMAL)
188 / 16 11 .75 C
11 / 16 0 .6875 B
Final Answer BC
Teac
Expl her
anat
i on
Denary to Hex
Presentation
Mode Needed How do you convert 921 into
hex?
RESULT RESULT REMAINDER (in
DIVISION
(INTEGER) (DECIMAL) HEXADECIMAL)
921 / 16 57 . 5625 9
57 / 16 3 . 5625 9
3 / 16 0 .1875 3
Final Answer 399
Teac
Expl her
anat
i on
Task 1: Denary to Hex.
Convert the denary
numbersnumbers below toto
below (denary) hex.
hexadecimal.
20
38
45
78
80
Task
98
Feedback: Task 1
20 14
38 26
45 2D
78 4E
80 50
Prog
ress 98 62
Chec
k
Task 2: Denary to Hex.
Convert the denary
numbersnumbers
below (denary) to hexadecimal.
132
423
507
812
1234
Task
65734
Feedback: Task 2
132 84
423 1A7
507 1FB
812 32C
1234 4D2
Prog
ress
65734 100C6
Chec
k
Binary to Hex
Teac
Expl her
anat
i on
Binary to Hex
Teac
Expl her
anat
i on
Binary to Hex
Teac
Expl her
anat
i on
Binary to Hex
9 9 3 15
Final answer = 993F
Teac
Expl her
anat
i on
Task 1: Binary to Hexadecimal
Number to Convert Working Area Final Answer
Binary 1 0011 011
1
1 0011 0111 Denary
Hex
Binary 1001 101
1
1001 1011 Denary
Hex
Binary
11 1010 Denary
Hex
Binary
Binary
Task
1110 1111 0101 Denary
Hex
Feedback: Task 1
Number to Convert Working Area Final Answer
Binary 1 0011 011
11 1010 Denary 3A
Hex
Binary
Binary
Prog
ress 1110 1111 0101 Denary EF5
Chec Hex
k
Binary to Hex
Teac
Expl her
anat
i on
Binary to Hex
Presentation
Mode Needed
Convert FB26 to
binary
1111 101 001 001
0 0 1
Teac
Expl her
anat
i on
Task 1: Hexadecimal to Binary
Number to Working Area Final Answer
Convert
Hex A C 1
Decimal
AC1 Binary
Hex 1 2 F
Decimal
12F Binary
Binary
Denary
987D Hex
Binary
Denary
56AC Hex
Binary
Task Denar
AC1234 y
Hex
Feedback: Task 1
Number to Working Area Final Answer
Convert
Hex A C 1
Decimal
AC1 Binary
1010 1100 0001
Hex 1 2 F
Decimal
12F Binary
0001 0010 1111
Binary
Prog
ress
Denar 1010 1100 0001
Chec
AC1234 y
0010 0011 0100
k Hex
Plenary Task 1
Plen
a ry
Feedback: Plenary Task 1
If you and the dead can read hex, how
many can read hex?
4096 256 16 1
D E A D
DEAD + YOU
= 57005 + 1 =
57006
Plen
a ry
Plenary Task
2a
Plen
a ry
Plenary Task
2b
Plen
a ry
Feedback: Plenary Task 2
Plen
a ry
Past Paper Question 1
Task
Feedback: Past Paper Q1
Prog
ress
Chec
k
Past Paper Question 2
Task
Feedback: Past Paper Q2
Prog
ress
Chec
k
Past Paper Question 3
Task
Feedback: Past Paper Q3
Prog
ress
Chec
k
Past Paper Question 4
Task
Feedback: Past Paper Q4
Prog
ress
Chec
k
Past Paper Question 5
Task
Feedback: Past Paper Q5
Prog
ress
Chec
k
Past Paper Question 6
Task
Feedback: Past Paper Q6
Prog
ress
Chec
k