Page 14 - Digital Electronics by harish
P. 14

Octal to hexadecimal conversion
               The following procedure can be used for converting the octal number to binary number:

               Step 1 : First convert the octal number to binary number
               Step 2 : Then, convert the binary number to hexadecimal number  (procedure already given)

               Example: To convert the octal number 34.56 to binary number

                       Step 1 :    3      4     .    5        6     (Octal number)
                       Step 2 :  011  100   .  101    110   (Binary equivalent)
                       Step 3 :  0001  1100   .   1011 1000 (Group of 4-bits)
                       Step 4 :    1        C      .      B      8  (Hexadecimal number)

                       Therefore, 34.56 8 = 1C.B8 16

               Hexadecimal to decimal conversion

               i) Integer numbers

               The given hexadecimal number can be converted to decimal number by using the following
               procedure:

               Step 1 : Write the hexadecimal number
               Step 2 : Write the place value (weight) directly under the hexadecimal  number
               Step 3 : Multiply the hexadecimal number by the place value
               Step 4 : Add the values to get the decimal number.

               Example: To convert the hexadecimal number 8E6 to decimal number

                       Step 1 :    8        E        6      (Hexadecimal number)
                       Step 2 :  256     16       1       (Place value)
                       Step 3 : 2048    224     6       (Multiply)
                       Step 4 : 2278                        (Add, to get the Decimal number)

                       Therefore, 8E6 16 = 2278 10

               ii) Fractional numbers

               The same procedure used for the integer numbers can be used for fractional numbers also.

               Example: To convert the hexadecimal number 0.39 to decimal number

                       Step 1 :      3                   9          (Hexadecimal number)
                       Step 2 :  0.0625      0.00390625  (Place value)
                       tep 3 :    0.18755   0.03515625  (Multiply)
                       Step 4 : 0.22270625                   (Add, to get the Decimal number)


                       Therefore, 0.39 16 = 0. 0.22270625 10







                                                           14
   9   10   11   12   13   14   15   16   17   18   19