102,497 views
31 votes
31 votes
A bit pattern is shown below.
01001110
Convert the bit pattern into decimal

User Ilya Vinogradov
by
2.8k points

1 Answer

30 votes
30 votes

Answer:

78

Step-by-step 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 Vineet Choudhary
by
2.5k points