El tiempo

martes, 18 de enero de 2011

De Binari a Decimal

Passa de  binari a decimal els següents nombres:
  • 101
  • 1010
  • 11110
  • 10100110

101(2) = 1 x 22 + 0 x 21 + 1 x 20 = 4 + 0 + 1 = 5(10)
1010(2) = 1 x 23 + 0 x 22 + 1 x 21 + 0 x 20 = 8 + 0 + 2 + 0 = 10(10)
11110(2) = 1 x 24 + 1 x 23 + 1 x 22 + 1 x 21 + 0 x 20 = 16 + 8 + 4 + 2 + 0 = 30(10)
10100110(2) = 1 x 27 + 0 x 26 + 1 x 25 + 0 x 24 + 0 x 23 + 1 x 22 + 1 x 21 + 0 x 20 = 128 + 0 + 32 + 0 + 0 + 4 + 2 + 0 = 166(10)

No hay comentarios:

Publicar un comentario