Page 28 - Computer Class 06
P. 28

Example 2  :    (127)   =  (1010111)                   Step 2  :    (87)   =  (1010111)     2
                                                                                               10
                                               8                 2
                      Step 1          :    (127)   =  (87) 10                                  2   87       1
                                                 8
                                                                                               2   43
                                        1         2         7                                               1
                                        8 2       8 1       8 0                                2   21       1
                                                                                                   10
                                                                                               2
                                        64     +     8     +     1                                          0
                                                                                               2   5
                                        (1×64)+(2×8)+(7×1)                                                  1
                                                                                               2   2        0
                                        64     +     16     +    7                                 1
                                        =  87
                                                            Answer          :    (127)   = (87)    = (1010111)       2
                                                                                                  10
                                                                                        8
             Conversion from Decimal to Hexadecimal Number System

             Rules :

             1.     Divide the number by 16.

             2.     Get the integer quotient for the next integer.
             3.     Get the remainder for the hex digit.

             4.     Repeat the steps until the quotient is equal to 0.

                    Equivalent  binary  number  is  obtained  by  writing  sequence  of  remainders
                     starting from bottom to top.

                            Example 1 :         (74)  = (4A) 16             Example 2 :         (110)  = (6E) 16
                                                  10
                                                                                                   10
                                            16   74                                         16  110

                                                 4   10 (A)                                     6 14 (E)


             Conversion from Hexadecimal to Decimal Number System
             Rules :

             1.     Multiply each digit of the hexadecimal number starting from right to left by 160,
                    161, 162- - - - - -- respectively.

             2.     Sum up all the products to get result.

                           Example 1 :     (4A)   =  (74)             Example 2 :    (1C7)   =  (455)
                                                   16        10                               16           10
                                             4          A (10)                          1              C (12)      7 0
                                                                                            2
                                                                                                        1
                                             16 1     16 0                             16            16        16
                                                                                       256           16        1
                                             16       1
                                                                                        (1x256)+(12x16)+(7x1)
                                             (4x16)+(10x1)
                                                                                        256    +    192    +    7
                                             64    +   10 =  74
                                                                                        =  455



              Computer-6             28   Computer-1
   23   24   25   26   27   28   29   30   31   32   33