Under Construction
Needs work. Haven’t done many of these problems.
Positive Integers are represented as binary numbers in computers.
Two’s complement
Negative integers as two’s complement
First bit is the sign, 0 for positive, 1 for negative.
The body is not the absolute value, it is the addition complement of
So to convert -123 to binary:
- convert the positive, 123 to binary.
- Invert the bits
- Add 1