Notation Systems for the Integers
Place Value and Fixed-Width Integer Meaning
In base b, the digit string dₖ…d₀ represents Σdᵢbⁱ, where each digit is between 0 and b−1. Thus hexadecimal uses digits 0–9 and A–F, and each hexadecimal digit represents exactly four binary bits. Octal digits represent three bits.
For a fixed-width unsigned n-bit word, values range from 0 through 2ⁿ−1. In two’s complement, the leading bit has weight −2ⁿ⁻¹ while the other positions retain positive powers of two; the range is −2ⁿ⁻¹ through 2ⁿ⁻¹−1. The same bit pattern therefore needs a declared width and signedness before it has one numerical interpretation.
Conversions should be checked by expansion into place values or by repeated division. Do not remove leading zeros when a problem asks about a fixed-width stored representation: they may carry width information even though they do not change the unsigned magnitude.
Which binary word represents 3A₁₆ when each hexadecimal digit is written with four bits?
Interpreted as an 8-bit two’s-complement integer, what is 11110110₂?