Representation of Integers HKCE Computer Studies Education Department 2000
Sign-and-magnitude 符號數值表示法 Sign 0 Pos 1 Neg Magnitude
3-bit example
or -0 ?
Two’s Complement 二進制補碼 counter on cassette recorder … Play Reverse
Negative Positive
2’s Complement of 1. Positive Number 2. Binary Format 3. Interchange 0’s and 1’s 4. Add 1 to code
2’s Complement of 1. Positive Number 2. Binary Format 3. Interchange 0’s and 1’s 4. Add 1 to code Ex.
2’s Complement of 1. Positive Number 2. Binary Format 3. Interchange 0’s and 1’s 4. Add 1 to code = +107 Why? Ex.
What is the decimal form of the 2’s complement value, ?
Home Assignment Reply the on home assignment. Visit the web pages in the for the preparation of the next lesson.