0% found this document useful (0 votes)
40 views

Power of 2 128 64 32 16 8 4 2 1: Answer 2

The document describes how to convert a binary number to its decimal equivalent using a table with powers of two. It involves filling in the table with bits from the binary number and adding the corresponding power of two if the bit is 1. This cumulative sum is the decimal number. The example converts 01110110 to 118. It also describes using the table to convert a decimal number to binary by setting bits to 1 if the power of two is less than or equal to the remaining amount.

Uploaded by

singh test
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
40 views

Power of 2 128 64 32 16 8 4 2 1: Answer 2

The document describes how to convert a binary number to its decimal equivalent using a table with powers of two. It involves filling in the table with bits from the binary number and adding the corresponding power of two if the bit is 1. This cumulative sum is the decimal number. The example converts 01110110 to 118. It also describes using the table to convert a decimal number to binary by setting bits to 1 if the power of two is less than or equal to the remaining amount.

Uploaded by

singh test
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Answer 2

In order to determine this, we simply fill in the following table, which has
the powers of two filled in.
Power of 2 128 64 32 16 8 4 2 1
Power of 2 128 64 32 16 8 4 2 1
Bit
Cumulative
Amount

All we need to do is fill in the bit cells from our given binary number, then add the
corresponding power of 2 where the bit is 1. When the bit is 0, that power of 2 is not
added to the amount.
To start by entering 0 in the leftmost “Cumulative Amount” cell, then we enter a 1 in
the leftmost “Bit” cell, which then adds 128 to the cumulative amount, like so:
Power of 2 128 64 32 16 8 4 2 1
Power of 2 128 64 32 16 8 4 2 1
Bit
Cumulative 0 0
Amount

We then continue following this methodology with rest of the table cells. When
doing so, we arrive at the final number 118, so we know that the binary number
01110110 is 118 in decimal.
Power of 2 128 64 32 16 8 4 2 1
Power of 2 128 64 32 16 8 4 2 1
Bit 0 1 1 1 0 1 1
Cumulative 0 64 96 112 112 116 118 118
Amount
Answer 4
We can make use of the similar table below, which helps us by illustrating the powers of 2,
as well as the amount remaining we have left to represent as we add bits to the
representation.ower
of 2 128 64 32 16 8 4 2 1
Power of 2 128 64 32 16 8 4 2 1
Bit
Cumulative
Amount

We only use a 1 bit if the corresponding power of 2 is greater than or equal to the
amount remaining, and a 0 bit otherwise.
We start by entering the full number, 131, into the leftmost “Amount Remaining”
cell.
Power of 2 128 64 32 16 8 4 2 1
Power of 128 64 32 16 8 4 2 1
2
Bit
Amount 131
Remainin
g

We now consider whether 128 is less than 131, which it is, and so we enter a 1 into
the “Bit” cell under 128. And because we entered a 1, we subtract that amount from
the previous amount remaining, like so:
Power of 2 128 64 32 16 8 4 2 1
Power of 128 64 32 16 8 4 2 1
2
Bit 1
Amount 131 3
Remainin
g

We then continue this methodology through the rest of the table. However amount
remaining is less than power of 2 than we will enter a 0 into the “Bit” cell under the power
of 2.After filling in the table, we find that 131 in decimal is 10000011 in binary.
Power of 2 128 64 32 16 8 4 2 1
Power of 2 128 64 32 16 8 4 2 1
Bit 1 0 0 0 0 0 1 1
Cumulative 131 3 3 3 3 3 3 1 1
Amount

You might also like