Page 26 - Computer Class 06
P. 26

Example 1        (12)  = (1000)   2                Example 2         (21)  = (10101)  2
                                                                                                   10
                                                10
                            2  12           0      Remainder                     2  21        1
                            2   6           0                                    2  10        0
                            2   3           0                                    2  5         1

                            2   1           1                                    2  2         0
                                0                                                2  1         1
                                                                                    0

             Conversion from Binary to Decimal Number System

             Rules :

                                                                                                                     2
                                                                                                                1
                                                                                                            0
             1.     Multiply each digit of the binary number starting from right to left by 2 , 2 , 2 -
                    - - - -- respectively.
             2.     Sum up all the products to get result.


              Example 1 :     (1100)   =  (12)
                                        2         10         Example 2 :     (10101)   =  (21)
                                                                                         2
                                1      1      1      1                         1        1        1       1        1
                                2 3    2 2    2 1    2 0                       2 4      2 3      2 2     2 1      2 0
                                8      4      2      1                        16        8        4       2        1
                                (1x8)+(1x4)+(0x2)+(0x1)
                                                                               (1x16)+(0x8)+(1x4)+(0x2)+(1x1)
                                8   +     4   +     0   +    0
                                                                               1 6 + 0 + 4 + 0 + 1
                            =   12                                             21
             Conversion from Decimal to Octal Number System

             Rules :

             1.     Divide the given number with the base of octal number i.e. 8.

             2.     Write down the remainder and divide the quotient again by 8.

             3.     Repeat the step 2 till the quotient becomes 0.


                         Example 1 :     (65)  = (101)  8                 Example 2 :       (99)  = (143)  8
                                                                                              10
                                           10
                             8   65      1                                8   99       3
                             8   8       0                                8   12       4
                                 1                                            1


             Conversion from Octal to Decimal Number System

             Rules :
                                                                                                             1
                                                                                                                 2
                                                                                                         0
             1.     Multiply each digit of the octal number starting from right to left by 8 , 8 , 8  - -
                     - - - respectively.



              Computer-6             26   Computer-1
   21   22   23   24   25   26   27   28   29   30   31