CMPT 120 Chapter 3: Study Guide Readings Part 33

11 views2 pages
meghan78 and 39786 others unlocked
CMPT 120 Full Course Notes
29
CMPT 120 Full Course Notes
Verified Note
29 documents

Document Summary

The computer can do operations like addition and subtraction on binary integers the same way you do with decimal numbers. You just have to keep in mind that 1+1 = 210 = 102, so if you add two 1"s together, there is a carry. There are a few examples of binary addition in figure 2. 3. These correspond to the decimal operations 10+4 = 14, 11+2 = 13, and 13+5 = 18. You can use the familiar algorithms you know for subtraction, multiplication, and division as well. The method described above will let us represent any positive integer in the computer"s memory. The bits that make up the computer"s memory must be used to represent both positive and negative numbers. The typical method is called two"s complement notation. (the previous method, which can"t represent negative values, is generally called unsigned integer representation. )

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents