- Basics of Computers Tutorial
- Basics of Computers – Home
- Basics of Computers – Introduction
- Basics of Computers - Classifications
- Basics of Computers – S/W Concepts
- Basics of Computers – System S/W
- Functions of Operating System
- Types of Operating System
- Basics of Computers – Utility S/W
- Open Source Software
- Basics of Computers – Office Tools
- Domain Specific Tools
- Number System
- Number System Conversion
- Microprocessor Concepts
- Evolution of Microprocessor
- Primary Memory
- Secondary Memory
- Basics of Computers – I/O Ports

- Basics of Computers Resources
- Basics of Computers – Quick Guide
- Basics of Computers – Resources
- Basics of Computers – Discussion

- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who

As you know decimal, binary, octal and hexadecimal number systems are positional value number systems. To convert binary, octal and hexadecimal to decimal number, we just need to add the product of each digit with its positional value. Here we are going to learn other conversion among these number systems.

Decimal numbers can be converted to binary by repeated division of the number by 2 while recording the remainder. Let’s take an example to see how this happens.

The remainders are to be read from bottom to top to obtain the binary equivalent.

43_{10} = 101011_{2}

Decimal numbers can be converted to octal by repeated division of the number by 8 while recording the remainder. Let’s take an example to see how this happens.

Reading the remainders from bottom to top,

473_{10} = 731_{8}

Decimal numbers can be converted to octal by repeated division of the number by 16 while recording the remainder. Let’s take an example to see how this happens.

Reading the remainders from bottom to top we get,

423_{10} = 1A7_{16}

To convert a binary number to octal number, these steps are followed −

Starting from the least significant bit, make groups of three bits.

If there are one or two bits less in making the groups, 0s can be added after the most significant bit

Convert each group into its equivalent octal number

Let’s take an example to understand this.

1011001010_{12} = 2625_{8}

To convert an octal number to binary, each octal digit is converted to its 3-bit binary equivalent according to this table.

Octal Digit | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 |

Binary Equivalent | 000 | 001 | 010 | 011 | 100 | 101 | 110 | 111 |

54673_{8} = 101100110111011_{2}

To convert a binary number to hexadecimal number, these steps are followed −

Starting from the least significant bit, make groups of four bits.

If there are one or two bits less in making the groups, 0s can be added after the most significant bit.

Convert each group into its equivalent octal number.

Let’s take an example to understand this.

10110110101_{2} = DB5_{16}

To convert an octal number to binary, each octal digit is converted to its 3-bit binary equivalent.

Video

Video

Video

Video

Video

Advertisements