Example 1.4.1. Largest and Smallest.
What are the smallest and largerst positive integers representable by and \(8\)-bit binary number?
Solution.
The smallest positive integer would be \(\left(00000000\right)_{2}\text{,}\) or more simply \(\left(0\right)_{10}\text{.}\) The largest positive integer would be \(\left(11111111\right)_{2}\text{,}\) which is \(\left(255\right)_{10}\text{.}\) We can see this by evaluating the full expansion,
\begin{equation*}
1\cdot 2^7 + 1\cdot 2^6 + 1\cdot 2^5 + 1\cdot 2^4 +
1\cdot 2^3 + 1\cdot 2^2 + 1\cdot 2^1 + 1\cdot 2^0
\end{equation*}
or by recognizing that this is equivalent to \(2^8 - 1\text{.}\)