, a total of n bits is used. The leftmost
bit is used to represent the sign. A 0 bit in this position is used for positive integers, and a 1 bit in this
position is used for negative integers. For positive integers the remaining bits are identical to the
binary expansion of the integer. For negative integers, the remaining bits are obtained by first finding
the binary expansion of the absolute value of the integer, and then taking the complement of each of
these bits, where the complement of a 1 is a 0 and a 0 is a 1.