lunes, 4 de abril de 2011

Conversiones en el sistema decimal

  • Convertir el numero de binario a decimal :
     10(2) ----> 2(10)


      1 0
      1   0
          2   2

          0                1
        2 * 0 +  2 * 1
           0    +    2
                2

  • Convertir el numero de binario a decimal:

           1010011(2) -----> 83(10)

            1 0 1 0 0 1 1
               6   4 3  2  1   0
               2  2  2  2  2  2  2

                   0                 1                 2                 3                 4                 5                6
                2  * 1 + 2 * 0 + 2 * 0 + 2 * 0 + 2 * 1 + 2 * 0 + 2 * 1
             1   +     2   +    0    +    0    +    16  +    0    +   64
                                          83


  • Convertir el numero de octal a decimal:
        342(8) -----> 226(10)

           3 4 2
       2  1  0 
        8  8  8

         0                 1                   2
      8  * 2 + 8  * 4 + 8  * 3
         2    +   32    +    192
                    226

  • Convertir el siguiente numero de hexadecimal a decimal:

          4 A F E(16) -----> 19198 (10)
            
             4 A F E 
        3  2  1  0
          16 16 16 16

              0                      1                         2                       3   
      16  * 14 + 16  * 15 + 16  * 10 + 16  * 4
           14     +     240    +    2560   +   16384
                              19198


      



No hay comentarios:

Publicar un comentario