105k views
5 votes
Convert the following binary numbers to decimal:

10010101
01110110
00110011
11100010
10000001

User Floum
by
6.0k points

1 Answer

4 votes

Answer:

Hi!

10010101 = 149;

01110110 = 118;

00110011 = 51;

11100010 = 226;

10000001 = 129;

Step-by-step explanation:

To convert binary numbers you can use this formula:


N = bit_(1) * 2^(0) + bit_(2) * 2^(1) + bit_(3) * 2^(2) + bit_(4) * 2^(3) + ... + bit_n 2^(n-1), where position of the bit₀ is the rightmost digit of the number.

Results, using the formula:

10010101 = 1*2⁰+1*2²+1*2⁴+1*2⁷ = 1 + 4 + 16 + 128 = 149.

01110110 = 1*2¹+1*2²+1*2⁴+1*2⁵+1*2⁶ = 118;

00110011 = 1*2⁰+1*2¹+1*2⁴+1*2⁵ = 51;

11100010 = 1*2¹+1*2⁵+1*2⁶+1*2⁷ = 226;

10000001 = 1*2⁰+1*2⁷ = 129;

Note: All bits in 0 multiplied by any number are 0.

User Peter Dang
by
4.9k points