cs1104-2a

# Cs1104-2a - Lecture 2 Number Systems Supplementary Notes Complements Floating-point Numbers CS1104-2a Number Systems Supplementary Notes 1

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

CS1104-2a Number Systems Supplementary N 1 Lecture 2: Number Systems Supplementary Notes Complements Floating-point Numbers

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

View Full Document
CS1104-2a 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. [4-bit base-2] Find the 1’s complement of 0110. Answer: 1001. [4-bit base-2] 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”.
CS1104-2a Complements 3 Complements (2/4) More examples: [8-bit base-2] Find the 1’s complement of 101. Answer: 11111010. [8-bit base-2] Find the 1’s complement of 11001000. Answer: 00110111. [8-bit base-2] 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.

### Page1 / 8

Cs1104-2a - Lecture 2 Number Systems Supplementary Notes Complements Floating-point Numbers CS1104-2a Number Systems Supplementary Notes 1

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

View Full Document
Ask a homework question - tutors are online