SlideShare uma empresa Scribd logo
1 de 22
Lecture No. 06
Computer Arithmetic
Introduction
• ADDITION
– Like decimal numbers, two numbers can be
added by adding each pair of digits together
with carry propagation.
(647)10
+ (537)10
(1184)10
Binary Addition
• Two 1-bit values
A B A + B
0 0 0
0 1 1
1 0 1
1 1 10
“two”
Binary Addition
• Two n-bit values
– Add individual bits
– Propagate carries
– E.g.,
10101 21
+ 11001 + 25
101110 46
11
Try it: 0011 + 1010
1 1 1 1 0 1
+ 1 0 1 1 1
---------------------
0
1
0
1
1
1111
1 1 00
carries
Example Add (11110)2 to
(10111)2
carry
Binary Addition
Negative Numbers Representation
 Unsigned numbers: only non-negative values.
 Signed numbers: include all values (positive and negative).
 Till now, we have only considered how unsigned (non-
negative) numbers can be represented. There are three
common ways of representing signed numbers (positive and
negative numbers) for binary numbers:
 Sign-and-Magnitude
 1s Complement
 2s Complement
Negative Numbers:
Sign-and-Magnitude
 Negative numbers are usually written by writing a
minus sign in front.
 Example:
– - (12)10 , - (1100)2
 In sign-and-magnitude representation, this sign is
usually represented by a bit:
– 0 for +
– 1 for -
Negative Numbers:
Sign-and-Magnitude
 Example: an 8-bit number can have 1-bit sign and 7-bit
magnitude.
sign magnitude
Negative Numbers:
Sign-and-Magnitude
 Largest Positive Number: 0 1111111 +(127)10
 Largest Negative Number: 1 1111111 -(127)10
 Zeroes: 0 0000000 +(0)10
1 0000000 -(0)10
 Range: -(127)10 to +(127)10
Compliments
• Subtraction in any number system can be accomplished
through the use of complements.
• A complement is a number that is used to represent the
negative of a given number.
1s and 2s Complement
 Two other ways of representing signed numbers
for binary numbers are:
 1s-complement
 2s-complement
Complementary Arithmetic
• 1’s complement
– Switch all 0’s to 1’s and 1’s to 0’s
Binary # 10110011
1’s complement 01001100
Complementary Arithmetic
• 2’s complement
– Step 1: Find 1’s complement of the number
Binary # 11000110
1’s complement 00111001
– Step 2: Add 1 to the 1’s complement
00111001
+ 00000001
00111010
2’s Complement Examples
Example #1
Complement Digits
Add 1
5 = 00000101
-5 = 11111011

11111010
+1
2’s Complement Examples
Complement Digits
Add 1
-13 = 11110011
13 = 00001101

00001100
+1
Using The 2’s Compliment Process
9
+ (-5)
4
(-9)
+ 5
- 4
(-9)
+ (-5)
- 14
9
+ 5
14
POS
+ POS
POS

POS
+ NEG
POS

NEG
+ POS
NEG

NEG
+ NEG
NEG

Use the 2’s complement process to add together the
following numbers.
POS + POS → POS Answer
If no 2’s complement is needed, use regular binary addition.
000010019
+ 5
14

 00001110
00000101 +
POS + NEG → POS Answer
Take the 2’s complement of the negative number and use
regular binary addition.
000010019
+ (-5)
4


11111011+
00000101

11111010
+1
11111011
2’s
Complement
Process
1]00000100
8th Bit = 0: Answer is Positive
Disregard 9th Bit
POS + NEG → NEG Answer
Take the 2’s complement of the negative number and use
regular binary addition.
11110111(-9)
+ 5
-4


00000101+
00001001

11110110
+1
11110111
2’s
Complement
Process
11111100
8th Bit = 1: Answer is Negative
11111100

00000011
+1
00000100
To Check:
Perform 2’s
Complement
On Answer
NEG + NEG → NEG Answer
Take the 2’s complement of both negative numbers and use
regular binary addition.
11110111(-9)
+ (-5)
-14


11111011 +
2’s Complement
Numbers, See
Conversion Process
In Previous Slides
1]11110010
8th Bit = 1: Answer is Negative
Disregard 9th Bit
11110010

00001101
+1
00001110
To Check:
Perform 2’s
Complement
On Answer
Thank you

Mais conteúdo relacionado

Mais procurados

Mais procurados (20)

Complements
ComplementsComplements
Complements
 
2s complement arithmetic
2s complement arithmetic2s complement arithmetic
2s complement arithmetic
 
Chapter 7 rohith
Chapter 7 rohithChapter 7 rohith
Chapter 7 rohith
 
Complement
ComplementComplement
Complement
 
Binary true ppt
Binary true pptBinary true ppt
Binary true ppt
 
Arithmetic circuits
Arithmetic circuitsArithmetic circuits
Arithmetic circuits
 
Binary Arithmetic
Binary ArithmeticBinary Arithmetic
Binary Arithmetic
 
Number system
Number systemNumber system
Number system
 
Binary Codes and Number System
Binary Codes and Number SystemBinary Codes and Number System
Binary Codes and Number System
 
Decimal to binary number
Decimal to binary numberDecimal to binary number
Decimal to binary number
 
Binary coded decimal r004
Binary coded decimal   r004Binary coded decimal   r004
Binary coded decimal r004
 
Digital basics
Digital basicsDigital basics
Digital basics
 
Binary addition
Binary additionBinary addition
Binary addition
 
Number systems r002
Number systems  r002Number systems  r002
Number systems r002
 
Number system
Number systemNumber system
Number system
 
CBNST PPT, Floating point arithmetic,Normalization
CBNST PPT, Floating point arithmetic,NormalizationCBNST PPT, Floating point arithmetic,Normalization
CBNST PPT, Floating point arithmetic,Normalization
 
Code conversion r006
Code conversion r006Code conversion r006
Code conversion r006
 
digital logic circuits, digital component
digital logic circuits, digital componentdigital logic circuits, digital component
digital logic circuits, digital component
 
Number system and codes
Number system and codesNumber system and codes
Number system and codes
 
09 arithmetic
09 arithmetic09 arithmetic
09 arithmetic
 

Semelhante a Lecture 06 computer arithmatic

Chapter 2_Number system (EEEg4302).pdf
Chapter 2_Number system (EEEg4302).pdfChapter 2_Number system (EEEg4302).pdf
Chapter 2_Number system (EEEg4302).pdfTamiratDejene1
 
Number system
Number systemNumber system
Number systemaviban
 
Chapter 2 Data Representation on CPU (part 1)
Chapter 2 Data Representation on CPU (part 1)Chapter 2 Data Representation on CPU (part 1)
Chapter 2 Data Representation on CPU (part 1)Frankie Jones
 
L3 ARITHMETIC OPERATIONS.pptx
L3 ARITHMETIC OPERATIONS.pptxL3 ARITHMETIC OPERATIONS.pptx
L3 ARITHMETIC OPERATIONS.pptxHarish257692
 
Digital logic design lecture 02
Digital logic design   lecture 02 Digital logic design   lecture 02
Digital logic design lecture 02 FarhatUllah27
 
Digital fundamendals r001a
Digital fundamendals r001aDigital fundamendals r001a
Digital fundamendals r001aarunachalamr16
 
Integer Representation
Integer RepresentationInteger Representation
Integer Representationgavhays
 
ch3a-binary-numbers.ppt
ch3a-binary-numbers.pptch3a-binary-numbers.ppt
ch3a-binary-numbers.pptssuser52a19e
 
Review on Number Systems: Decimal, Binary, and Hexadecimal
Review on Number Systems: Decimal, Binary, and HexadecimalReview on Number Systems: Decimal, Binary, and Hexadecimal
Review on Number Systems: Decimal, Binary, and HexadecimalUtkirjonUbaydullaev1
 
ch3a-binary-numbers.ppt
ch3a-binary-numbers.pptch3a-binary-numbers.ppt
ch3a-binary-numbers.pptRAJKUMARP63
 
W3 Chapter 2B Notes CCB1223 Digital Logic.pdf
W3 Chapter 2B Notes CCB1223 Digital Logic.pdfW3 Chapter 2B Notes CCB1223 Digital Logic.pdf
W3 Chapter 2B Notes CCB1223 Digital Logic.pdfMOHDZAMRIBINIBRAHIM1
 
Chapter 02 Data Types
Chapter 02   Data TypesChapter 02   Data Types
Chapter 02 Data TypesNathan Yeung
 

Semelhante a Lecture 06 computer arithmatic (20)

Chapter 2_Number system (EEEg4302).pdf
Chapter 2_Number system (EEEg4302).pdfChapter 2_Number system (EEEg4302).pdf
Chapter 2_Number system (EEEg4302).pdf
 
Number system
Number systemNumber system
Number system
 
tCh10.ppt
tCh10.ppttCh10.ppt
tCh10.ppt
 
Chapter 2 Data Representation on CPU (part 1)
Chapter 2 Data Representation on CPU (part 1)Chapter 2 Data Representation on CPU (part 1)
Chapter 2 Data Representation on CPU (part 1)
 
L3 ARITHMETIC OPERATIONS.pptx
L3 ARITHMETIC OPERATIONS.pptxL3 ARITHMETIC OPERATIONS.pptx
L3 ARITHMETIC OPERATIONS.pptx
 
Digital logic design lecture 02
Digital logic design   lecture 02 Digital logic design   lecture 02
Digital logic design lecture 02
 
Representation of Negative Numbers
Representation of Negative NumbersRepresentation of Negative Numbers
Representation of Negative Numbers
 
Arithmetic unit.ppt
Arithmetic unit.pptArithmetic unit.ppt
Arithmetic unit.ppt
 
Digital fundamendals r001a
Digital fundamendals r001aDigital fundamendals r001a
Digital fundamendals r001a
 
ch2.pdf
ch2.pdfch2.pdf
ch2.pdf
 
Integer Representation
Integer RepresentationInteger Representation
Integer Representation
 
ch3a-binary-numbers.ppt
ch3a-binary-numbers.pptch3a-binary-numbers.ppt
ch3a-binary-numbers.ppt
 
ch3a-binary-numbers.ppt
ch3a-binary-numbers.pptch3a-binary-numbers.ppt
ch3a-binary-numbers.ppt
 
binary-numbers.ppt
binary-numbers.pptbinary-numbers.ppt
binary-numbers.ppt
 
Review on Number Systems: Decimal, Binary, and Hexadecimal
Review on Number Systems: Decimal, Binary, and HexadecimalReview on Number Systems: Decimal, Binary, and Hexadecimal
Review on Number Systems: Decimal, Binary, and Hexadecimal
 
ch3a-binary-numbers.ppt
ch3a-binary-numbers.pptch3a-binary-numbers.ppt
ch3a-binary-numbers.ppt
 
W3 Chapter 2B Notes CCB1223 Digital Logic.pdf
W3 Chapter 2B Notes CCB1223 Digital Logic.pdfW3 Chapter 2B Notes CCB1223 Digital Logic.pdf
W3 Chapter 2B Notes CCB1223 Digital Logic.pdf
 
Alu1
Alu1Alu1
Alu1
 
Chapter 02 Data Types
Chapter 02   Data TypesChapter 02   Data Types
Chapter 02 Data Types
 
Number_Systems (2).ppt
Number_Systems (2).pptNumber_Systems (2).ppt
Number_Systems (2).ppt
 

Último

1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...RKavithamani
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991RKavithamani
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 

Último (20)

1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 

Lecture 06 computer arithmatic

  • 2. Introduction • ADDITION – Like decimal numbers, two numbers can be added by adding each pair of digits together with carry propagation. (647)10 + (537)10 (1184)10
  • 3. Binary Addition • Two 1-bit values A B A + B 0 0 0 0 1 1 1 0 1 1 1 10 “two”
  • 4. Binary Addition • Two n-bit values – Add individual bits – Propagate carries – E.g., 10101 21 + 11001 + 25 101110 46 11
  • 5. Try it: 0011 + 1010
  • 6. 1 1 1 1 0 1 + 1 0 1 1 1 --------------------- 0 1 0 1 1 1111 1 1 00 carries Example Add (11110)2 to (10111)2 carry Binary Addition
  • 7. Negative Numbers Representation  Unsigned numbers: only non-negative values.  Signed numbers: include all values (positive and negative).  Till now, we have only considered how unsigned (non- negative) numbers can be represented. There are three common ways of representing signed numbers (positive and negative numbers) for binary numbers:  Sign-and-Magnitude  1s Complement  2s Complement
  • 8. Negative Numbers: Sign-and-Magnitude  Negative numbers are usually written by writing a minus sign in front.  Example: – - (12)10 , - (1100)2  In sign-and-magnitude representation, this sign is usually represented by a bit: – 0 for + – 1 for -
  • 9. Negative Numbers: Sign-and-Magnitude  Example: an 8-bit number can have 1-bit sign and 7-bit magnitude. sign magnitude
  • 10. Negative Numbers: Sign-and-Magnitude  Largest Positive Number: 0 1111111 +(127)10  Largest Negative Number: 1 1111111 -(127)10  Zeroes: 0 0000000 +(0)10 1 0000000 -(0)10  Range: -(127)10 to +(127)10
  • 11. Compliments • Subtraction in any number system can be accomplished through the use of complements. • A complement is a number that is used to represent the negative of a given number.
  • 12. 1s and 2s Complement  Two other ways of representing signed numbers for binary numbers are:  1s-complement  2s-complement
  • 13. Complementary Arithmetic • 1’s complement – Switch all 0’s to 1’s and 1’s to 0’s Binary # 10110011 1’s complement 01001100
  • 14. Complementary Arithmetic • 2’s complement – Step 1: Find 1’s complement of the number Binary # 11000110 1’s complement 00111001 – Step 2: Add 1 to the 1’s complement 00111001 + 00000001 00111010
  • 15. 2’s Complement Examples Example #1 Complement Digits Add 1 5 = 00000101 -5 = 11111011  11111010 +1
  • 16. 2’s Complement Examples Complement Digits Add 1 -13 = 11110011 13 = 00001101  00001100 +1
  • 17. Using The 2’s Compliment Process 9 + (-5) 4 (-9) + 5 - 4 (-9) + (-5) - 14 9 + 5 14 POS + POS POS  POS + NEG POS  NEG + POS NEG  NEG + NEG NEG  Use the 2’s complement process to add together the following numbers.
  • 18. POS + POS → POS Answer If no 2’s complement is needed, use regular binary addition. 000010019 + 5 14   00001110 00000101 +
  • 19. POS + NEG → POS Answer Take the 2’s complement of the negative number and use regular binary addition. 000010019 + (-5) 4   11111011+ 00000101  11111010 +1 11111011 2’s Complement Process 1]00000100 8th Bit = 0: Answer is Positive Disregard 9th Bit
  • 20. POS + NEG → NEG Answer Take the 2’s complement of the negative number and use regular binary addition. 11110111(-9) + 5 -4   00000101+ 00001001  11110110 +1 11110111 2’s Complement Process 11111100 8th Bit = 1: Answer is Negative 11111100  00000011 +1 00000100 To Check: Perform 2’s Complement On Answer
  • 21. NEG + NEG → NEG Answer Take the 2’s complement of both negative numbers and use regular binary addition. 11110111(-9) + (-5) -14   11111011 + 2’s Complement Numbers, See Conversion Process In Previous Slides 1]11110010 8th Bit = 1: Answer is Negative Disregard 9th Bit 11110010  00001101 +1 00001110 To Check: Perform 2’s Complement On Answer

Notas do Editor

  1. Examples of the 2’s Complement Process.
  2. Examples of the 2’s Complement Process.
  3. This slide show that there are only four possible combinations for adding together two signed numbers. The next four slides demonstrate each of these examples.
  4. Addition of two Positive numbers.
  5. This example shows the addition of one positive and one negative numbers. Note that this is done in the same way as subtracting a positive number from a positive number. In this case, the answer is positive.
  6. This slide demonstrates the addition of one positive and one negative number. Again, this is is the same a subtracting a positive number from a positive number. In this case the answer happens to be negative.
  7. This slide demonstrates the addition of two negative numbers.