EECS 1520 Lecture Notes - Lecture 4: Negative Number

25 views4 pages
mahika.c06 and 40040 others unlocked
EECS 1520 Full Course Notes
54
EECS 1520 Full Course Notes
Verified Note
54 documents

Document Summary

3. 2 /continued equals +42 equals 42 equals -10 equals 90 equals -10 equals 90. 80 plus 30 equals +10 equals 10 (110) Subtraction reduces to addition because a b = a + ( b) Easy to convert a positive number to its negative counterpart, and a negative number to its positive counterpart. Used in computers because subtraction reduces to addition. Start with the positive version of the number. Flip the bits: 0 1 and 1 0. Add 1 to the number produced in the previous step in both directions. The above steps are an indirect way of carrying out the evaluation of 2n - x , namely x [(2n 1) x] + 1. Note: same process will convert between positive and negative representations, 24 x = 24 5 = 16 5 = 11 in binary this is. Now add one to this result. (24 1) x = (24 1) 5 = 10 in binary this is.

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers
Class+
$30 USD/m
Billed monthly
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
7 Verified Answers

Related Documents