Lesson 2 Number Bases
Lesson 2 Number Bases
Data representation
Ali Papila
In this lesson you will:
2
Computers and electricity
3
14,285 transistors can fit across a single human hair
4
Computers and electricity
5
Number bases
6
Number bases
7
Number bases
Why does the first 9 hold more value than the last 9?
9 0 1 9
8
Number bases
Why does the first 9 hold more value than the last 9?
9 0 1 9
Each number has a place value
9
Number bases
10
Number bases
11
Number bases
12
Number bases
13
Number bases
14
Number bases
x 10 x 10 x 10
You work out the next place value by multiplying by 1000 100 10 1
10 as you move from right to left. 9 0 1 9
15
Digits
Source: Pixabay
16
Digits
We have 10 digits:
0, 1, 2, 3, 4, 5, 6, 7, 8, 9
Source: Pixabay
17
Binary
Make a prediction
18
Binary
Make a prediction
19
Binary
Make a prediction
20
Binary
Make a prediction
21
Binary
x2 x2 x2
22
Binary
x2 x2 x2
23
Number bases
To work out the value of a number, you need to know 1000 100 10 1
its place value. 9 0 1 9
24
Number bases
To work out the value of a number, you need to know 1000 100 10 1
its place value. 9 0 1 9
9 x 1000 0 x 100 1 x 10 9x1
You then multiple the digit by its place value.
25
Number bases
To work out the value of a number, you need to know 1000 100 10 1
its place value. 9 0 1 9
9 x 1000 0 x 100 1 x 10 9x1
You then multiple the digit by its place value.
9000 0 10 9
26
Number bases
27
Number bases
28
Number bases
29
Number bases
30
Number bases
31
Number bases
32
Number bases
Nine
33
Number bases
34
Number bases
e.g.
101
35
Number bases
36
Binary?
Base 10 Base 2
37
Binary?
Base 10 Base 2
38
How many digits does decimal
have?
10 2
39
How many digits does decimal
have?
10 2
40
Converting from binary to decimal
41
Converting from binary to decimal
42
Converting from binary to decimal
If I give you the binary number 111 then you place the 128 64 32 16 8 4 2 1
digits from right to left in the table.
43
Converting from binary to decimal
If I give you the binary number 111 then you place the 128 64 32 16 8 4 2 1
digits from right to left in the table. 1
44
Converting from binary to decimal
If I give you the binary number 111 then you place the 128 64 32 16 8 4 2 1
digits from right to left in the table. 1 1
45
Converting from binary to decimal
If I give you the binary number 111 then you place the 128 64 32 16 8 4 2 1
digits from right to left in the table. 1 1 1
46
Converting from binary to
decimal
Then you need to look at their place value and add 128 64 32 16 8 4 2 1
those values together. 1 1 1
4+2+1=7
47
Converting from binary to
decimal
Then you need to look at their place value and add 128 64 32 16 8 4 2 1
those values together. 1 1 1
4+2+1=7
48
Converting from binary to
decimal
Let’s try another. 128 64 32 16 8 4 2 1
1 0 1 0
Convert 1010 from binary to decimal.
49
Converting from binary to
decimal
This time you have some 0s. These can be left out of 128 64 32 16 8 4 2 1
your calculation. 1 0 1 0
50
Converting from binary to
decimal
This time you have some 0s. These can be left out of 128 64 32 16 8 4 2 1
your calculation. 1 0 1 0
8 + 2 = 10
51
Converting from binary to
decimal
This time you have some 0s. These can be left out of 128 64 32 16 8 4 2 1
your calculation. 1 0 1 0
8 + 2 = 10
52
Converting from binary to
decimal
Let’s try a slightly larger binary number. 128 64 32 16 8 4 2 1
1 0 1 1 1 1
Convert 101111 from binary to decimal.
53
Converting from binary to
decimal
Let’s try a slightly larger binary number. 128 64 32 16 8 4 2 1
1 0 1 1 1 1
Convert 101111 from binary to decimal.
54
Converting from binary to
decimal
Let’s try a slightly larger binary number. 128 64 32 16 8 4 2 1
1 0 1 1 1 1
Convert 101111 from binary to decimal.
55
Converting from binary to
decimal
Use your table to help you answer the following quick 128 64 32 16 8 4 2 1
fire questions.
56
Convert these numbers from binary to decimal
57
101
5 6
58
101
5 6
59
1111
14 15
60
1111
14 15
61
10111
23 21
62
10111
23 21
63
1110
11 12
13 14
64
1110
11 12
13 14
65
10000011
128 131
129 132
66
10000011
128 131
129 132
67
Converting from decimal to binary
68
Converting from decimal to binary
69
Converting from decimal to binary
You start by looking for the highest value that fits into
the number 5.
70
Converting from decimal to binary
You start by looking for the highest value that fits into
the number 5.
71
Converting from decimal to binary
You start by looking for the highest value that fits into
the number 5.
72
Converting from decimal to binary
You start by looking for the highest value that fits into
the number 5.
73
Converting from decimal to binary
You start by looking for the highest value that fits into
the number 5.
74
Converting from decimal to binary
You start by looking for the highest value that fits into
the number 5.
75
Converting from decimal to binary
You start by looking for the highest value that fits into
the number 5.
76
Converting from decimal to binary
77
Converting from decimal to binary
Then you start looking for the highest value that fits 128 64 32 16 8 4 2 1
into your remaining number. 1
5-4=1
78
Converting from decimal to binary
Then you start looking for the highest value that fits 128 64 32 16 8 4 2 1
into your remaining number. 1
5-4=1
79
Converting from decimal to binary
Then you start looking for the highest value that fits 128 64 32 16 8 4 2 1
into your remaining number. 1 0
5-4=1
80
Converting from decimal to binary
5-4=1
1-1=0
81
Converting from decimal to binary
82
Converting from decimal to binary
83
Converting from decimal to binary
84
Converting from decimal to binary
85
Converting from decimal to binary
86
Converting from decimal to binary
87
Converting from decimal to binary
88
Converting from decimal to binary
89
Converting from decimal to binary
28 - 16 = ?
90
Converting from decimal to binary
28 - 16 = 12
91
Converting from decimal to binary
28 - 16 = 12
92
Converting from decimal to binary
28 - 16 = 12
93
Converting from decimal to binary
28 - 16 = 12
12 - 8 = ?
94
Converting from decimal to binary
28 - 16 = 12
12 - 8 = 4
95
Converting from decimal to binary
28 - 16 = 12
12 - 8 = 4
96
Converting from decimal to binary
28 - 16 = 12
12 - 8 = 4
97
Converting from decimal to binary
28 - 16 = 12
12 - 8 = 4
4-4=?
98
Converting from decimal to binary
28 - 16 = 12
12 - 8 = 4
4-4=0
99
Converting from decimal to binary
12 - 8 = 4
4-4=0
100
Converting from decimal to binary
101
Converting from decimal to binary
102
Converting from decimal to binary
103
Converting from decimal to binary
A. 128
B. 120
C. 80
D. 200
E. 190
104
Converting from decimal to binary: solutions
105
Converting from decimal to binary: solutions
106
Converting from decimal to binary: solutions
107
Converting from decimal to binary: solutions
108
Converting from decimal to binary: solutions
109