This preview shows pages 1–4. Sign up to view the full content.
CS11042a
Number Systems Supplementary N
1
Lecture 2: Number Systems
Supplementary Notes
Complements
Floatingpoint Numbers
This preview has intentionally blurred sections. Sign up to view the full version.
View Full Document CS11042a
Complements
2
Complements (1/4)
“Find the complement of a number” is the short way of
saying “find the negated value in the complement
system”.
For example, the two questions below are equivalent.
[4bit base2]
Find the 1’s complement of 0110.
Answer: 1001.
[4bit base2]
If x is (0110)
1s
, what is x in 1’s complement
form?
Answer: (1001)
1s
So, “find the 1’s complement of 0110” is not
asking for
“how is 0110 represented in 1’s complement”.
CS11042a
Complements
3
Complements (2/4)
More examples:
[8bit base2]
Find the 1’s complement of 101.
Answer: 11111010.
[8bit base2]
Find the 1’s complement of 11001000.
Answer: 00110111.
[8bit base2]
How is (101)
2
represented in 1’s complement?
Answer: 00000101.
This preview has intentionally blurred sections. Sign up to view the full version.
View Full Document
This is the end of the preview. Sign up
to
access the rest of the document.
This note was uploaded on 10/19/2010 for the course CS 161 taught by Professor Wallace during the Fall '08 term at Oregon State.
 Fall '08
 Wallace

Click to edit the document details