62.6k views
2 votes
A bit pattern is shown below.
01001110
Convert the bit pattern into decimal.

User Ben Sefton
by
4.5k points

1 Answer

2 votes

Answer:

78

Explanation:

I always convert to hexadecimal first:

0100 = 4

1110 = E

(the matching of groups of 4 bits to one hex char is a lookup you can memorize)

so we have 4E, which is 4*16+14 = 78

Of course you can also go the long route:

01001110 = 0·2⁷+1·2⁶+0·2⁵+0·2⁴+1·2³+1·2²+1·2¹+0·2⁰ = 78

User Amr Ellafy
by
4.4k points