Remember that a positive integer does not need to be flipped, although it must be padded with 0s on the left end to achieve the set number of bits. Thus, +19 in 8-bit 2's complement is 00010011. A common mistake that student make is to flip and add 1, even if the number is positive. This is definitely wrong! |