Rules for converting a negative denary number to 2's compliment binary.

7 views
Skip to first unread message

9691 Discussion Group

unread,
Aug 15, 2011, 2:01:30 AM8/15/11
to Computing (9691 CIE Syllabus)
Rule 1:
- Find the binary value of the equivalent positive decimal number.
- Change all the 0s to 1s and all the 1s to 0s.
- Add 1 to result.

Rule 2:
- Starting from right, leave all the digits alone up to and including
the first '1'.
- Change all the other digits from 0 to 1 or from 1 to 0.
Example: -00110100 = 11001100

Practices:
- Covert following to binary: -5, -10, -20
- What is the largest negative number that can be held in 8 bits,
assuming the leftmost bit is a sign bit?
Reply all
Reply to author
Forward
0 new messages