You are on page 1of 22

BINARY Number

SYSTEM
OBJECTIVES:
At the end of this lesson you will be able to
 Understand its basics
 Convert binary number to decimal numbers
 Convert Decimal number to binary numbers
 Where it is used
 What is the connection of it to computers
BINARY NUMBER SYSTEM

▪ Bi means “two” and Nary means “not one” so Binary means


“two not one”
▪ The Binary system tell the computers and circuit which
wires need to be on or off.
▪ Also called as the base-2 numbers
▪ It is made of only two numbers – 0 and 1
▪ 0 = off and 1 = on
NUMBER SYSTEM
Base-10 or Decimal system
▪ Numbers used: 0, 1 ,2, 3, 4, 5, 6, 7, 8, 9
▪ Each column is 10 times greater than the right
Base-2 or Binary System
▪ Numbers used: 0 and 1
▪ Each column is 2 times greater than the right
NUMBER SYSTEM
Base-8 or Octal System
▪ Numbers used: 0, 1 ,2, 3, 4, 5, 6, 7
▪ One digit of octal represents 3 digits of binary
▪ Each column is 8 times greater than the right
Base-16 or Hexadecimal System
▪ Numbers used: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F
▪ One digit of Hexadecimal represents 4 digits of binary
▪ Each column is 16 times greater than the right
𝟐𝟕 𝟐𝟔 𝟐𝟓 𝟐𝟒 𝟐𝟑 𝟐2 𝟐𝟏 𝟐𝟎

128 64 32 16 8 4 2 1
1 0 1 1 0 1 1 1
BINARY TO DECIMAL

1 0 1 1 1 02
1 0 1 1 1 0
32 16 8 4 2 1

Add all numbers under one


Disregard numbers under zero
32 + 8 + 4 + 2 = 46
BINARY TO DECIMAL

1 1 0 1 02
1 1 0 1 0
16 8 4 2 1

▪ Add all numbers under one


▪ Disregard numbers under zero

16 + 8 + 2 = 26
BINARY TO OCTAL

111001010101012
011 l 100 l 101 l 010 l 101
2+3 l 4 l 4+1 l 2 l 4+1
= 345258
BINARY TO OCTAL

11100011110101012
001 l 110 l 001 l 111 l 010 l 101
1 l 4 +2 l 1 l 4+2+1 l 2 l 4+1
= 1617258
BINARY TO HEXADECIMAL

111001010101012
0011 l 1001 l 0101 l 0101
2+1 l 8+1 l 4+1 l 4+1
= 395516
BINARY TO HEXADECIMAL

1111111000011112
0111 l 1111 l 0000 l 1111
4+2+1 l 8+4+2+1 l 0 l 8+4+2+1
= 7F0F16
DECIMAL TO BINARY

Convert 46 to Binary
46/2 0
23/2 1
Binary = 1011102
11/2 1
5/2 1
2/2 0
1/2 1
DECIMAL TO BINARY

Convert to 89 Binary
89/2 1
44/2 0
22/2 0 Binary = 10110012
11/2 1
5/2 1
2/2 0
1/2 1
DECIMAL TO OCTAL

Convert to 49310 Octal

493/8 5
Octal = 7558
61/8 5

7/8 7
DECIMAL TO OCTAL

Convert to 79910 Octal

799/8 7
99/8 3 Octal = 14378
12/8 4
1/8 1
DECIMAL TO HEXADECIMAL

Convert to 49310 Octal

493/16 13
13 -- D
30/16 14
14 -- E
1/16 1
Hexadecimal = 1ED16
DECIMAL TO HEXADECIMAL

Convert to 79910 Octal

799/16 15
Hexadecimal= 31F16
49/16 1
3/16 3
OCTAL TO DECIMAL

345258
84 83 82 81 80
3 4 5 2 5

= (3* 84 ) + (4* 83 ) + (5* 82 ) + (2*8) + (5* 80 )


= (3*4096) + (4*512) + (5*64) + (2*8) + (5*1)
= 12288 + 2048 + 320 + 16 + 5
=1467710
HEXADECIMAL TO DECIMAL

198916
163 162 161 160
1 9 8 9

= (1* 163 ) + (9* 162 ) + (8*16) + (9* 160 )


= (1*4096) + (9*256) + (8*16) + (9*1)
= 4096 + 2304 + 128 + 9
=653710
OCTAL TO HEXADECIMAL

2138
o Convert to binary
010 001 011

o Convert to hexadecimal
0 l 1000 l 1011
0 l 8 l 8+2+1
=8B16

You might also like