cs2100-2-Number-Systems-Supp

# cs2100-2-Number-Systems-Supp - NUMBERSYSTEMS...

This preview shows pages 1–4. Sign up to view the full content.

CS2100 Number Systems Supplementary Notes 1 NUMBER SYSTEMS SUPPLEMENTARY NOTES Complements Floating-point Numbers

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
CS2100 Number Systems Supplementary Notes 2 COMPLEMENTS (1/3) “Find the complement of a number” or “complement a number” is the short way of saying… “find the negated value in that complement system”. For example, the two questions below are equivalent. [4-bit] Find/get the 1’s complement of 0110 (or, 1’s complement this value: 0110) Answer: 1001. [4-bit] 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”. See next slides for more examples.
CS2100 Number Systems Supplementary Notes 3 COMPLEMENTS (2/3) More examples: [8-bit] Find the 1’s complement of 101. Answer: 11111010 [8-bit] Find the 1’s complement of 11001000. Answer: 00110111

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 02/27/2011 for the course CS 2100 taught by Professor Shivakumar during the Spring '11 term at IIT Kanpur.

### Page1 / 7

cs2100-2-Number-Systems-Supp - NUMBERSYSTEMS...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online