Example: Representing an Integer
- Let's decide that we will use
8 columns or
8 bits to describe an integer in
base 2.
-
- the seven
columns to the right are used to display the
number.
-
- the left most
column tells the
sign of the number
- 0
for a positive number
- 1
for a negative number
- For instance, with this notation:
- 75 (base 10) is
01001011
- -75 (base 10) is
11001011