Convert Number Systems: Binary, Octal, Hexadecimal & Decimal
1. CLASS : XI
COMPUTER SCIENCE(083) - PYTHON
https://computerassignmentsforu.com PART-2
NUMBER SYSTEM
2. CONVERT DECIMAL NUMBER TO BINARY NUMBER
CONVERT DECIMAL NUMBER TO OCTAL NUMBER
CONVERT DECIMAL NUMBER TO HEXADECIMAL NUMBER
In The previous Topic We Study :
3. Number System Conversion
TO CONVERT BINARY NUMBER TO DECIMAL NUMBER
TO CONVERT OCTAL NUMBER TO DECIMAL NUMBER
TO CONVERT HEXADECIMAL NUMBER TO DECIMAL NUMBER
Base value Of Binary: 2
Base value Of Octal: 8
Base value Of Hexadecimal: 16
Base value Of Decimal: 10
Base value Of Decimal: 10
Base value Of Decimal: 10
4. Convert binary NUMBER to decimal Number
Example:
(1011)2
0 1 1
From Right To Left
1 =
=
=
1 x 1 = 1
1 x 2 = 2
Total: 11
1
1
0
1
x
x
x
x
2
2
2
2
0
1
2
0 x 4 = 0
1 x 8 = 8
1
2
0
8
Add
=
3
1 2 0 8
=
5. How to prove decimal number binary is correct or not
(13)10 = (?)2
(1101)2
1 0 1
1 =
=
=
1 x 1 = 1
0 x 2 = 0
Total: 13
1
0
1
1
x
x
x
x
2
2
2
2
0
1
3
2
1 x 4 = 4
1 x 8 = 8=
So it’s proved
(1101)2 = ( ? ) 10
6. Convert octal NUMBER to decimal Number
Example:
(234)8
2 3 4
From Right To Left
4 =
=
=
Total: 156
3
2
x
x
x
8
8
8
0
1
2
4
24
128
4 x 1 = 4
3 x 8 = 24
2 x 64 = 128
(156)10=
4 24 128+ +
Add
7. Convert hexadecimal NUMBER to decimal Number
Example:
(A3B)16
A 3 B
From Right To Left
B =
=
=
Total:2595
3
A
x
x
x
16
16
16
0
1
2
11
24
2560
11 x 1 = 11
3 x 16 = 48
10 x 256= 2560
(2595)10=
11 24 2560+ +
Add