Professional Documents
Culture Documents
BY:-
AMIR JAVED (2017-CS-227)
ARSAD ALI (2017-CS-228)
ABU BAKAR (2017-CS-229)
INTRODUCTION
There
are several number systems which we use
commonly use , such as decimal binary Octal
Hexadecimal etc.
The numbers
having base 16 is called hexadecimal
number system.
Includes Numbers (0….9,A…..F)
CONVERSIONS OF NUMBER SYSTEM
The numbers can be converted from one to another
number system and vice versa.
1. Decimal to Binary AND 7. Octal to Binary
2. Decimal to Octal 8. Octal to Decimal
3. Decimal to Hexadecimal 9. Octal to Hexadecimal
4. Binary to Decimal 10. Hexadecimal to Binary
5. Binary to Octal 11. Hexadecimal to
Decimal
6. Binary to Hexadecimal 12. Hexadecimal to Octal
Binary to Decimal
Conversion of binary to
decimal ( base 2 to base 10)
Example: convert (1000100)2
to decimal
= 64 + 0 + 0+ 0 + 4 + 0 + 0
= (68)10
Decimal to Binary
Conversion of decimal to binary ( base 10 to
base 2)
Example: convert (68)10 to binary
68/¸2 = 34 remainder is 0
34/ 2 = 17 remainder is 0
17 / 2 = 8 remainder is 1
8 / 2 = 4 remainder is 0
4 / 2 = 2 remainder is 0
2 / 2 = 1 remainder is 0
1 / 2 = 0 remainder is 1
Answer = 1 0 0 0 1 0 0
Octal to Decimal