0.112 = 0×1 + 1×(0.5) + 1×(0.25) = 0.75
In a binary representation a particular power of two is either included in the sum or not, since the digits are either "1" or "0". A "1" bit in a position means to include the corresponding power of two in the sum. In converting representations, it is convenient to have a table.
Power of 2 | 3 | 2 | 1 | 0 | . | -1 | -2 | -3 | -4 |
---|---|---|---|---|---|---|---|---|---|
8 | 4 | 2 | 1 | . | 0.5 | 0.25 | 0.125 | 0.0625 | |
Include? | . |