```Binary
Aim: Explain binary and binary units
Objective 1: Convert positive denary whole numbers (0-255)
into 8-bit binary numbers and vice versa
Objective 2: Add two 8-bit binary integers and explain overflow
errors which may occur
Objective 3: Define the terms bit, nibble, byte, kilobyte,
megabyte, gigabyte, terabyte
Binary
What is a denary number?
234
Why Base 10?
Binary
What is a binary number?
128
64
32
Why Base 2?
Binary is the
universal
language of
computers
16
8
4
2
1s
Binary
Converting denary to binary
128
64
32
16
8
4
2
1s
1
1
1
0
1
0
1
0
234
234-128=106
106-64=42
42-32=10
10-8=2
Binary
Converting denary to binary - EXERCISE
Convert the following to 8 bit binary:
16
34
128
132
00010000
00100010
10000000
10000100
47
255
11
127
00101111
11111111
00001011
01111111
Binary
Converting denary to binary – Online Game
http://forums.cisco.com/CertCom/game/binary_game_page.htm
Binary
00101010 + 01101101
0
0
1
1
0
1
0
1
1
1
0
0
0
1
1
1
1
0
0
1
1
THREE RULES!
0+0=0
0+1=1
1 + 1 = 0 (carry 1)
1
0
1
0
1
1
DEC
42
109
151
Binary
10010110 + 10011011
1
1
1
0
0
0
0
0
0
1
1
1
1
1
1
0
1
0
1
1
0
0
1
OVERFLOW!
ERROR
OVERFLOW!
ERROR
1
1
0
0
1
1
DEC
150
155
305
Binary
Adding binary to binary - EXERCISE
00010010 + 01000011 =
10000101 + 00111110 =
00101010 + 01101101 =
10010110 + 10001101 =
Binary
Adding binary to binary - EXERCISE
00010010 + 01000011 =
0
0
0
1
0
0
1
0
0
1
0
0
0
0
1
1
0
1
0
1
0
1
0
1
1
Binary
Adding binary to binary - EXERCISE
1000010 + 00111110 =
1
0
0
0
0
0
1
0
0
0
1
1
1
1
1
0
1
1
0
0
0
0
0
0
1
1
1
1
1
Binary
Adding binary to binary - EXERCISE
00101010 + 01101101 =
0
0
1
0
1
0
1
0
0
1
1
0
1
1
0
1
1
0
0
1
0
1
1
1
1
1
1
Binary
Adding binary to binary - EXERCISE
10010110 + 10001101 =
OVERFLOW!
1
1
0
0
1
0
1
1
0
1
0
0
0
1
1
0
1
0
0
1
0
0
0
1
1
1
1
1
Binary
Tools to Help
Binary
Units
What is a bit?
A bit can either be a 1 or 0
Binary
Units
What is a byte?
A byte is 8 bits
Binary
Units
What is a nibble?
A nibble is 4 bits
A nibble is half a byte
This is a mouse
This is a mouse
This is a mouse
This is a mouse
This This is a mouse
This is a mouse
This is a mouse
This is a mouse
This is a mouse
Binary
Units
What is a Kilobyte (KB)?
x 1024
A kilobyte is 1024 bytes Why not 1000?
Binary
Units
What is a Megabyte (MB)?
A megabyte is 1024 kilobytes
Binary
Units
What is a Gigabyte (GB)?
A gigabyte is 1024 megabytes
Binary
Units
What is a Terabyte (TB)?
A terabyte is 1024 gigabytes
Binary
Units
What is a Petabyte (PB)?
A petabyte is 1024 terabytes
Binary
Units - EXERCISE
Arrange the following in size order:
Binary
Aim: Explain binary and binary units
Objective 1: Convert positive denary whole numbers (0-255)
into 8-bit binary numbers and vice versa
Objective 2: Add two 8-bit binary integers and explain overflow
errors which may occur
Objective 3: Define the terms bit, nibble, byte, kilobyte,
megabyte, gigabyte, terabyte