Computer+Numbers+Systems+Conversions +PDF
Computer+Numbers+Systems+Conversions +PDF
Systems Conversions
Assumptions
• What is Binary ??
• Units of Data
Course Topic
• Computer Number system
conversions
0 1
What is Binary ?
0 1
OFF ON
1 bit=0 or
1 bit=1
1 byte=8 bits
1 KiloByte (KB) = 1024 bits
1 Mega Byte(MB) = 1024 Kilobytes (KB)
1 Giga Byte (GB) = 1024 Megabytes (MB)
1 Tera Byte(TB) = 1024 Gigabytes (GB)
Types of Computer Number System
Binary Decimal
Hexadecimal into Octal
Decimal
Hex Binary Octal Octal
Hexadecimal Decimal
Octal into Binary
Use Table
Binary into Octal
Table Making Procedure
Binary = 2
Octal = 8
Ans) 2 x 2 x 2 = 8 23
Table will be Conversion from Binary into Octal & Octal to Binary
used
FOR
How to Make the Table
3 columns 8 rows
23 =8
8/2=4 2/2=1
Write four times 0
0 0 0 0 Then Write four times 1 Write one time 0
1 0 0 1 Write one time 1
4/2=2 Is Column completely
2 0 1 0
0 1 1 filled ? NO….
3 Write two times 0
Carry on till whole this
4 1 0 0 Then Write two times 1
column is filled
Still some boxes of this column
5 1 0 1 are empty, So again repeat
6 1 1 0 Write two times 0
Then Write two times 1 (Now
7 1 1 1 col is filled completely)
Octal into Binary
Use Table
Binary into Octal
Octal into Binary
Table will be used
FOR
Convert (25)8 = ( ? )2
Whole
number
(25) 8
o 0 0 0
1 0 0 1 2 5
2 0 1 0
3 0 1 1
4 1 0 0 010 101
5 1 0 1 010101
6 1 1 0 Answer
7 1 1 1 (25)8 = (10101)2
Octal into Binary
Table will be used
FOR
Convert (76.4)8 = ( )2 ?
Floating point
(76.4) 8 number
0 0 0
7 6 . 4
o
1 0 0 1
2 0 1 0 111 110 100
3 0 1 1
4 1 0 0 111110.100
5 1 0 1
6 1 1 0 Answer
7 1 1 1 (76.4)8 = (111110.100)2
Octal into Binary
Use Table
Binary into Octal
Binary into Octal
Table will be used
FOR
Convert (10110)2 = ( )8 ???
(10110) 2 Whole
number
010 110
o 0 0 0
1 0 0 1
2 0 1 0
3 0 1 1 2 6
4 1 0 0
5 1 0 1 26
6 1 1 0 Answer
7 1 1 1 (10110)2 = (26)8
Binary into Octal
Table will be used
FOR
Convert (11.10)2 = ( )8 ???
0 0 0
011 . 10 0
o
1 0 0 1
2 0 1 0 3 . 4
3 0 1 1
4 1 0 0
5 1 0 1
6 1 1 0 Answer
7 1 1 1 (11.10)2 = (3.4)8
Octal into Binary
Use Table
Binary into Octal
Binary = 2
Hexadecimal = 16
Ans) 2 x 2 x 2 x 2 = 16 24
Table will be Conversion from Binary into HexaDecimal & Hexadecimal to Binary
used How to Make the Table
FOR
4 columns
16 rows
0 0 0 0 0 24 = 16
1 0 0 0 1
0 0 1 0
4/2=2
2 16 / 2 = 8
3 0 0 1 1
Write eight times 0
4 0 1 0 0
Then Write eight times 1 Write two times 0
5 0 1 0 1
Write two times 1
6 0 1 1 0 8/2=4 Is Column completely filled ?
7 0 1 1 1 Write four times 0 Carry on till whole this column
8 1 0 0 0 Then Write four times 1 is filled
9 1 0 0 1 Still some boxes of this column
A 10 1 0 1 0 are empty, So again repeat 2/2=1
B 11 1 0 1 1 Write four times 0 Write one time 0
C 12 1 1 0 0 Then Write four times 1 (Carry Write one time 1
D 13 1 1 0 1 on till whole this column is Is Column completely filled ?
E 14 1 1 1 0 filled) Carry on till whole this column
F 15 1 1 1 1 is filled
Octal into Binary
Use Table
Binary into Octal
0 0 0 0 0 Whole
1 0 0 0 1
0 0 1 0
number
2
3 0 0 1 1 0100 1101
4 0 1 0 0
5 0 1 0 1
6 0 1 1 0
7 0 1 1 1 4 D
8 1 0 0 0
9 1 0 0 1
A 10 1 0 1 0
1
B 11
C 12 1
0
1
1
0
1
0
Answer
D 13 1 1 0 1
E 14 1 1 1 0 (1001101)2 = ( 4 D )16
F 15 1 1 1 1
Table will be used Binary into Hexadecimal
FOR
Convert (11.1101)2 = ( )16 ?
0 0 0 0 0 Floating point
1 0 0 0 1 number
2 0 0 1 0
3 0 0
1
1
0
1 0 011 . 1101
4 0 0
5 0 1 0 1
6 0 1 1 0
7
8
0
1
1
0
1
0
1
0
3 . D
9 1 0 0 1
A 10 1 0 1 0
B 11
C 12
1
1
0
1
1
0
1
0
Answer
D 13 1 1 0 1
E 14 1 1 1 0 (11.1101)2 = ( 3 . D ) 16
F 15 1 1 1 1
Octal into Binary
Use Table
Binary into Octal
6 6 . 4
o 0 0 0
1 0 0 1
2 0 1 0 110 110 100
3 0 1 1
4 1 0 0
5 1 0 1
6 1 1 0 Answer
7 1 1 1 (66.4)8 = (110110.100)2
Octal into Binary
Use Table
Binary into Octal
.
6 0 1 1 0
7
8
0 1 1 1 3 E 8
1 0 0 0
9 1 0 0 1
A 10 1 0 1 0
B 11
C 12
1
1
0
1
1
0
1
0
Answer
D 13 1 1 0 1 (111110.100)2 = ( 3 E . 8) 16
E 14 1 1 1 0
F 15 1 1 1 1 (66.4)8 = ( 3 E . 8 ) 16
Octal into Binary
Use Table
Binary into Octal
Floating point
number
Decimal Binary
Decimal Octal
Decimal Hexadecimal
Divide the given number by 16
Octal into Binary Decimal into other bases
Use Table
Whole number
Binary into Octal
Decimal Binary
HexaDecimal into Binary
Use Table Decimal Octal
Binary into Hexadecimal
Decimal Hexadecimal
2 198
2 - Quotient 99 49 2412 6 3 1
2 -
- Remainder 0 1 1 0 0 01
2
2 -
2 -
2 -
Answer
2 -
(11000110)2
Octal into Binary Decimal into other bases
Use Table
Whole number
Binary into Octal
Decimal Binary
HexaDecimal into Binary
Use Table Decimal Octal
Binary into Hexadecimal
Decimal Hexadecimal
8 798
8 - Quotient 99 12 1
8 -
- Remainder 6 3 4
Answer
(1436)8
Octal into Binary Decimal into other bases
Use Table
Whole number
Binary into Octal
Decimal Binary
HexaDecimal into Binary
Use Table Decimal Octal
Binary into Hexadecimal
Decimal Hexadecimal
16 798
16 - Quotient 49 3
16 -
Remainder E 1
Answer
(31E)16
Octal into Binary Decimal into other bases
Use Table
Floating point number
Binary into Octal
Decimal Binary
HexaDecimal into Binary
Use Table Decimal Octal
Binary into Hexadecimal
Decimal Hexadecimal
* 2 = 0.5 0 0.5
* 2 = 1.0 1 0
Now the fractional part = 0 So, STOP
Answer (.625)10 = ( .101 ) 2
Octal into Binary Decimal into other bases
Use Table
Floating point number
Binary into Octal
Decimal Binary
HexaDecimal into Binary
Use Table Decimal Octal
Binary into Hexadecimal
Decimal Hexadecimal
* 8 = 1.000 1 0.0
Answer
(.015625)10 = ( 0.01 ) 8
Octal into Binary Decimal into other bases
Use Table
Floating point number
Binary into Octal
Decimal Binary
HexaDecimal into Binary
Use Table Decimal Octal
Binary into Hexadecimal
Decimal Hexadecimal
Binary Decimal
Hexadecimal into Octal
Decimal
Hex Binary Octal Octal
Hexadecimal Decimal
Octal into Binary Decimal into other bases
Use Table
Binary Decimal
Hexadecimal into Octal
Decimal
Hex Binary Octal Octal
Hexadecimal Decimal
Binary into Decimal
Q:1) Convert (1011)2 = ( ) 10 Q:2) Convert (.101)2 = ( ) 10
Whole number Fractional Number
Ans 1 0 1 1 . 1 0 1
8 0 2 1 1/2 0 1/8
Binary Decimal
Hexadecimal into Octal
Octal Decimal
Hex Binary Octal
Hexadecimal Decimal
Octal into Decimal
Q:1) Convert (106)8 = ( ) 10 Q:2) Convert (.32)8 = ( ) 10
Whole Number Fractional Number
Ans 1 0 6 . 3 2
1 * 82 0 * 81 6 * 80 3 * 8-1 2 * 8-2
64 0 6 3/8 2/64
Binary Decimal
Hexadecimal into Octal
Octal Decimal
Hex Binary Octal
Hexadecimal Decimal
Conversion from Hexadecimal into Decimal
Q:1) Convert (13A)16 = ( ) 10 Q:2) Convert (.B8)16 = ( ) 10
Whole Number Fractional Number
Ans 1 3 A . B 8
Binary Decimal
Hexadecimal into Octal
Octal Decimal
Hex Binary Octal
Hexadecimal Decimal
Thank YOU !!