Conversions of number system
Conversions
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.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgDc7gJOcrMnDJN9o37xoEWrYGOkeSqGlB_SPlOVz_NdMajmcaENYVMMjOZpCYEGkNtTOgj08pAw4iPu7uw46RzxANONcMBL0X6XaeRQ7b2CN5iFuUhwOZ-Ts-CD_af9ZACSia1RVIPhT4/s400/boc.png)
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://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEicHgErBMtmJuacvfSYx7hqFwk_ZB-SMgea9Adi2LnNZTZQrpGSNkI_SWMW3u_i7mS3ChWWgiizmk0VhBXeDmQ8bDnlU9_4YJPr-ct2Phm740Xc1rYt0wGNIVsIsWKRkEqF8WZQZoDYeSc/s400/boc.png)
Reading the remainders from bottom to top,
(473)10 = (731)8
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.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjh3oT5nlTiavnxHGZalEjFLv0AtVF3n2klijzufJgIDZ3R94oVQ_MLCyrCmuuywjy4Oy-kEMolYv5Oh1ERcUJhjLSNFElNHhkMFAwvQGV0niP-XM8N8ND3KfBWbofOuB132yrHXMEB5xg/s400/boc.png)
Reading the remainders from bottom to top we get,
(423)10 = (1A7)16
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.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhUa-jBv8KHoV3mU1ygJBMVtHeEQ4NB7Im_odu2oDhs9ijtyecuDy40Py2n-m36klnnt4r9xtikA9fs9EY4FLFRwf_oqN38mMlHDASUfTnWJmmP2PdaI8NQ1DLiwT73aZFhOSSO0Vo1d10/s400/boc.png)
(1011001010)2 = (2625)8
To convert an octal number to binary, each octal digit is
converted to its 3-bit binary equivalent according to this table.
Comments
Post a Comment