Passa de binari a decimal els següents nombres: 101: 1 x 22 + 0 x 21 + 1 x 20 = 4 + 0 + 1 = 5 1010: 1 x 23 + 0 x 22 + 1 x 21 + 0 x 20 = 8 + 0 + 2 + 0 = 10 11110: 1 x 24 + 1 x 23 + 1 x 22 + 1 x 21 + 0 x 20 = 30 10100110: 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 + 32 + 4 + 2= 166 10011: 1 x 24 + 0 x 23 + 0 x 22 + 1 x 21 + 1 x 20 = 19
Passem els nombres de decimal a binari: •
1024: 1024/2= 512(0) = 512/2= 256(0) = 256/2 = 128(0)= 128/2 = 64(0) = 64/2 = 32(0) = 32/2 = 16 (0) = 16/2 = 8(0) = 8/2 = 4(0)= 4/2 = 2(0) = 2/2= 1(0) = 10000000000
•
312: 312/2 = 156(0) = 156/2 = 78(0) = 78/2 = 39(0) = 39/2 = 19 (1) = 19/2 = 9(1) = 9/2 = 4(1) = 4/2 = 2(0) = 2/2 = 1(0) = 100111000
•
12: 12/2= 6(0) = 6/2 = 3(0) = 1(1)= ½ = 0(1) = 1100
•
511: 511/2 = 255(1)= 255/2= 127(1)= 127/2= 63(1)= 63/2= 31(1) = 31/2= 15(1)= 15/2= 7(1) = 7/2= 3(1) = 3/2= 1(1)= ½= 0(1)= 111111111
•
13: 13/2 = 6(1) = 6/2= 3(0) = 3/2= 1(1) = ½= 0(1) = 1101