100% found this document useful (2 votes)
185 views

Number System Conversion - Tutorialspoint

The document discusses how to convert between different number systems, including decimal, binary, octal, and hexadecimal. It explains that conversion between systems involves repeatedly dividing the number by the base of the target system and recording the remainders. For example, to convert decimal to binary involves dividing by 2 and recording remainders from least to most significant. Similar processes are used for conversions between the other number systems.

Uploaded by

Zunaira Tahir
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (2 votes)
185 views

Number System Conversion - Tutorialspoint

The document discusses how to convert between different number systems, including decimal, binary, octal, and hexadecimal. It explains that conversion between systems involves repeatedly dividing the number by the base of the target system and recording the remainders. For example, to convert decimal to binary involves dividing by 2 and recording remainders from least to most significant. Similar processes are used for conversions between the other number systems.

Uploaded by

Zunaira Tahir
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

10/2/2020 Number System Conversion - Tutorialspoint

Number System Conversion

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 to Binary

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.
4310 = 1010112

Decimal to Octal

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.

https://www.tutorialspoint.com/basics_of_computers/basics_of_computers_number_system_conversion.htm 1/3
10/2/2020 Number System Conversion - Tutorialspoint

Reading the remainders from bottom to top,


47310 = 7318

Decimal to Hexadecimal

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,

42310 = 1A716

Binary to Octal and Vice Versa

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.

101100101012 = 26258
To convert an octal number to binary, each octal digit is converted to its 3-bit binary equivalent
according to this table.
https://www.tutorialspoint.com/basics_of_computers/basics_of_computers_number_system_conversion.htm 2/3
10/2/2020 Number System Conversion - Tutorialspoint

Octal Digit 0 1 2 3 4 5 6 7

Binary Equivalent 000 001 010 011 100 101 110 111

546738 = 1011001101110112

Binary to Hexadecimal

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.

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

https://www.tutorialspoint.com/basics_of_computers/basics_of_computers_number_system_conversion.htm 3/3

You might also like