From 639db602eb4e2b115817c4df1c51f2d152412622 Mon Sep 17 00:00:00 2001 From: Antti H S Laaksonen Date: Tue, 28 Feb 2017 20:00:15 +0200 Subject: [PATCH] Signed -> unsigned [closes #12] --- chapter10.tex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chapter10.tex b/chapter10.tex index 273e7c7..e282429 100644 --- a/chapter10.tex +++ b/chapter10.tex @@ -54,9 +54,9 @@ For example, the bit representation of $-43$ as an \texttt{int} number is as follows: \[11111111111111111111111111010101\] -In a signed representation, only nonnegative +In an unsigned representation, only nonnegative numbers can be used, but the upper bound of the numbers is larger. -A signed number of $n$ bits can contain any +An unsigned number of $n$ bits can contain any integer between $0$ and $2^n-1$. For example, the \texttt{unsigned int} type in C++ can contain any integer between $0$ and $2^{32}-1$.