SlideShare a Scribd company logo
1 of 14
Binary Addition, Subtraction , 
Multiplication and division
Binary addition:- 
A B Sum Carry 
0 0 0 0 
0 1 1 0 
1 0 1 0 
1 1 0 1 
Binary subtraction:- 
A B Difference Borrow 
0 0 0 0 
0 1 1 1 
1 0 1 0 
1 1 0 0
Add the following binary numbers: 
1. (1001)2 and (0101)2 
2. (101.01)2 and (1101.10)2 
Subtract the following binary numbers: 
1. (0110)2 from (1010)2 
2. (01011)2 from (11011)2
Binary Multiplication:- 
A B Output 
0 0 0 
0 1 0 
1 0 0 
1 1 1 
Binary Division:- 
A B Output 
0 1 0 
1 1 1 
Division by zero is meaning less
Solve the following binary multiplication 
1. (101)2 and (11)2 
2. (1011)2 and (1001)2 
Solve the following division 
1.(11001) by (101) 
2. (110000) by (100)
1โ€™s complement:- 
The 1โ€™s complement of binary number is 
obtained by changing each 0 to 1 and each 1 to 
0. both the numbers complement each other. 
If one of these number is positive , the other will 
be negative with same magnitude and vice 
versa. 
2โ€™s complement:- 
If 1 is added to 1โ€™s complement of a number 
then it will obtain the 2โ€™s complement of the 
number.
Subtraction using 1โ€™s complement 
a) Subtraction of smaller number from a larger 
number:- 
1. Calculate the 1โ€™s complement of a smaller 
number. 
2. add the 1โ€™s complement to the larger 
number. 
3. If carry comes in the MSB , remove the 
carry and add it to the result.
Subtraction using 1โ€™s complement 
b) Subtraction of larger number from a smaller 
number:- 
1.Calculate 1โ€™s complement of a larger 
number. 
2. Add 1โ€™s complement in smaller number 
3. The result will be in 1โ€™s complement form. 
Calculate 1โ€™s complement of final value and 
assign โ€“ve sign to the result.
Advantages of using 1โ€™s complement 
subtraction 
1. This can be easily obtained by simply 
inverting each bit in the number 
2. This subtraction can be done with an binary 
adder. Thus ,it is useful in arithmetic logic 
circuits.
Subtraction using 2โ€™s complement 
a) Subtraction of smaller number from a larger 
number:- 
1. Calculate the 2โ€™s complement of a smaller 
number. 
2. add the 2โ€™s complement to the larger 
number. 
3. If carry comes in the MSB , discard the 
carry .
Subtraction using 2โ€™s complement 
b) Subtraction of larger number from a smaller 
number:- 
1.Calculate 2โ€™s complement of a larger 
number. 
2. Add 2โ€™s complement in smaller number 
3. The result will be in 2โ€™s complement form. 
Calculate 2โ€™s complement of final value and 
assign โ€“ve sign to the result.
Unsigned and signed numbers 
Unsigned numbers:- 
๏ƒ˜Numbers without any positive and negative 
sign. 
๏ƒ˜Represents only magnitude
Sign magnitude numbers:- 
๏ƒ˜In binary number system, both +ve and โ€“ve values are 
possible. 
๏ƒ˜In this , we use 0โ€™s and 1โ€™s to represent every number. 
The representation of number is known as signed 
number. 
0๏ƒ +ve number 
1๏ƒ  -ve number. 
Eg:- +7=0111 
-7=1111 
This kind of representation for signed numbers is 
called as signed magnitude representation.
Different methods for the representation of 
binary signed numbers 
1. Sign magnitude form 
2. 1โ€™s complement form 
3. 2โ€™s complment form

More Related Content

What's hot

Decoders
DecodersDecoders
Decoders
Re Man
ย 
Binary octal
Binary octalBinary octal
Binary octal
drdipo4
ย 

What's hot (20)

Floating point representation
Floating point representationFloating point representation
Floating point representation
ย 
Decoders
DecodersDecoders
Decoders
ย 
1s and 2s complement
1s and 2s complement1s and 2s complement
1s and 2s complement
ย 
Comparators in DLD.
Comparators in DLD.Comparators in DLD.
Comparators in DLD.
ย 
Boolean Algebra
Boolean AlgebraBoolean Algebra
Boolean Algebra
ย 
Combinational Circuits & Sequential Circuits
Combinational Circuits & Sequential CircuitsCombinational Circuits & Sequential Circuits
Combinational Circuits & Sequential Circuits
ย 
Binary arithmetic
Binary arithmeticBinary arithmetic
Binary arithmetic
ย 
IEEE floating point representation
 IEEE floating point representation IEEE floating point representation
IEEE floating point representation
ย 
Binary codes
Binary codesBinary codes
Binary codes
ย 
Bcd
BcdBcd
Bcd
ย 
Subtractor
SubtractorSubtractor
Subtractor
ย 
Counters
CountersCounters
Counters
ย 
Binary octal
Binary octalBinary octal
Binary octal
ย 
1's and 2's complement
1's and 2's complement 1's and 2's complement
1's and 2's complement
ย 
Binary Arithmetic
Binary ArithmeticBinary Arithmetic
Binary Arithmetic
ย 
Adder Presentation
Adder PresentationAdder Presentation
Adder Presentation
ย 
Quick tutorial on IEEE 754 FLOATING POINT representation
Quick tutorial on IEEE 754 FLOATING POINT representationQuick tutorial on IEEE 754 FLOATING POINT representation
Quick tutorial on IEEE 754 FLOATING POINT representation
ย 
Representation of Negative Numbers
Representation of Negative NumbersRepresentation of Negative Numbers
Representation of Negative Numbers
ย 
Number system in Digital Electronics
Number system in Digital ElectronicsNumber system in Digital Electronics
Number system in Digital Electronics
ย 
Number system and codes
Number system and codesNumber system and codes
Number system and codes
ย 

Viewers also liked

04 bits andarithmetic
04 bits andarithmetic04 bits andarithmetic
04 bits andarithmetic
temkin abdlkader
ย 
Number system utm notes
Number system utm notesNumber system utm notes
Number system utm notes
Kurenai Ryu
ย 
Ch4 Boolean Algebra And Logic Simplication1
Ch4 Boolean Algebra And Logic Simplication1Ch4 Boolean Algebra And Logic Simplication1
Ch4 Boolean Algebra And Logic Simplication1
Qundeel
ย 
A high speed dynamic ripple carry adder
A high speed dynamic ripple carry adderA high speed dynamic ripple carry adder
A high speed dynamic ripple carry adder
eSAT Journals
ย 
EMBEDDED SYSTEMS 6
EMBEDDED SYSTEMS 6EMBEDDED SYSTEMS 6
EMBEDDED SYSTEMS 6
PRADEEP
ย 
Implementation of Area Effective Carry Select Adders
Implementation of Area Effective Carry Select AddersImplementation of Area Effective Carry Select Adders
Implementation of Area Effective Carry Select Adders
Kumar Goud
ย 
Work part transport method
Work part transport methodWork part transport method
Work part transport method
CALM-SUTRA
ย 

Viewers also liked (20)

Binary Arithmetic Presentation about Binary Numbers 2015
Binary Arithmetic Presentation about Binary Numbers 2015Binary Arithmetic Presentation about Binary Numbers 2015
Binary Arithmetic Presentation about Binary Numbers 2015
ย 
Number system
Number systemNumber system
Number system
ย 
BOOLEAN ALGEBRA & LOGIC GATE
BOOLEAN ALGEBRA & LOGIC GATEBOOLEAN ALGEBRA & LOGIC GATE
BOOLEAN ALGEBRA & LOGIC GATE
ย 
04 bits andarithmetic
04 bits andarithmetic04 bits andarithmetic
04 bits andarithmetic
ย 
Number system utm notes
Number system utm notesNumber system utm notes
Number system utm notes
ย 
Conversion of number system
Conversion of number systemConversion of number system
Conversion of number system
ย 
Ch4 Boolean Algebra And Logic Simplication1
Ch4 Boolean Algebra And Logic Simplication1Ch4 Boolean Algebra And Logic Simplication1
Ch4 Boolean Algebra And Logic Simplication1
ย 
Logic gates
Logic gatesLogic gates
Logic gates
ย 
Number System
Number SystemNumber System
Number System
ย 
Logic gates - AND, OR, NOT, NOR, NAND, XOR, XNOR Gates.
Logic gates - AND, OR, NOT, NOR, NAND, XOR, XNOR Gates.Logic gates - AND, OR, NOT, NOR, NAND, XOR, XNOR Gates.
Logic gates - AND, OR, NOT, NOR, NAND, XOR, XNOR Gates.
ย 
A high speed dynamic ripple carry adder
A high speed dynamic ripple carry adderA high speed dynamic ripple carry adder
A high speed dynamic ripple carry adder
ย 
1 5
1 51 5
1 5
ย 
Area Efficient 4-Bit Full Adder Design using CMOS 90 nm Technology
Area Efficient 4-Bit Full Adder Design using CMOS 90 nm Technology Area Efficient 4-Bit Full Adder Design using CMOS 90 nm Technology
Area Efficient 4-Bit Full Adder Design using CMOS 90 nm Technology
ย 
Binary addition
Binary additionBinary addition
Binary addition
ย 
EMBEDDED SYSTEMS 6
EMBEDDED SYSTEMS 6EMBEDDED SYSTEMS 6
EMBEDDED SYSTEMS 6
ย 
ENGR 312 Wind Power
ENGR 312   Wind PowerENGR 312   Wind Power
ENGR 312 Wind Power
ย 
Implementation of Area Effective Carry Select Adders
Implementation of Area Effective Carry Select AddersImplementation of Area Effective Carry Select Adders
Implementation of Area Effective Carry Select Adders
ย 
Design and Analysis of a Conventional Wallace Multiplier in 180nm CMOS Techno...
Design and Analysis of a Conventional Wallace Multiplier in 180nm CMOS Techno...Design and Analysis of a Conventional Wallace Multiplier in 180nm CMOS Techno...
Design and Analysis of a Conventional Wallace Multiplier in 180nm CMOS Techno...
ย 
High Speed Carryselect Adder
High Speed Carryselect AdderHigh Speed Carryselect Adder
High Speed Carryselect Adder
ย 
Work part transport method
Work part transport methodWork part transport method
Work part transport method
ย 

Similar to binary arithmetic rules

3.Fixed-Floating Point.ppt
3.Fixed-Floating Point.ppt3.Fixed-Floating Point.ppt
3.Fixed-Floating Point.ppt
RavikumarR77
ย 
2's complement
2's complement2's complement
2's complement
Arvenz Gavino
ย 
Notes unit 2
Notes   unit 2Notes   unit 2
Notes unit 2
KamarajA5
ย 

Similar to binary arithmetic rules (20)

Chapter 2_Number system (EEEg4302).pdf
Chapter 2_Number system (EEEg4302).pdfChapter 2_Number system (EEEg4302).pdf
Chapter 2_Number system (EEEg4302).pdf
ย 
FYBSC IT Digital Electronics Unit I Chapter II Number System and Binary Arith...
FYBSC IT Digital Electronics Unit I Chapter II Number System and Binary Arith...FYBSC IT Digital Electronics Unit I Chapter II Number System and Binary Arith...
FYBSC IT Digital Electronics Unit I Chapter II Number System and Binary Arith...
ย 
3.Fixed-Floating Point.ppt
3.Fixed-Floating Point.ppt3.Fixed-Floating Point.ppt
3.Fixed-Floating Point.ppt
ย 
module 1_class_numbers.pptx
module 1_class_numbers.pptxmodule 1_class_numbers.pptx
module 1_class_numbers.pptx
ย 
2's complement
2's complement2's complement
2's complement
ย 
unit-2_DL.pdf
unit-2_DL.pdfunit-2_DL.pdf
unit-2_DL.pdf
ย 
Computer arithmetic operations.pptx
Computer arithmetic operations.pptxComputer arithmetic operations.pptx
Computer arithmetic operations.pptx
ย 
index of all of the financial accounts in a company's general ledger. In shor...
index of all of the financial accounts in a company's general ledger. In shor...index of all of the financial accounts in a company's general ledger. In shor...
index of all of the financial accounts in a company's general ledger. In shor...
ย 
Computer Architecture refers to those attributes of a system that have a dire...
Computer Architecture refers to those attributes of a system that have a dire...Computer Architecture refers to those attributes of a system that have a dire...
Computer Architecture refers to those attributes of a system that have a dire...
ย 
Arithmetic Logic
Arithmetic LogicArithmetic Logic
Arithmetic Logic
ย 
Unit 1 data representation and computer arithmetic
Unit 1  data representation and computer arithmeticUnit 1  data representation and computer arithmetic
Unit 1 data representation and computer arithmetic
ย 
Notes unit 2
Notes   unit 2Notes   unit 2
Notes unit 2
ย 
Digital fundamendals r001a
Digital fundamendals r001aDigital fundamendals r001a
Digital fundamendals r001a
ย 
DLD_PPT_0.pptx
DLD_PPT_0.pptxDLD_PPT_0.pptx
DLD_PPT_0.pptx
ย 
Binaty Arithmetic and Binary coding schemes
Binaty Arithmetic and Binary coding schemesBinaty Arithmetic and Binary coding schemes
Binaty Arithmetic and Binary coding schemes
ย 
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
ย 
computer Unit 2
computer Unit 2computer Unit 2
computer Unit 2
ย 
ch2.pdf
ch2.pdfch2.pdf
ch2.pdf
ย 
B sc cs i bo-de u-i number system
B sc cs i bo-de u-i number systemB sc cs i bo-de u-i number system
B sc cs i bo-de u-i number system
ย 
Comp Arithmetic Basic.ppt
Comp Arithmetic Basic.pptComp Arithmetic Basic.ppt
Comp Arithmetic Basic.ppt
ย 

More from student

Logic Gates
Logic GatesLogic Gates
Logic Gates
student
ย 
towers of hanoi
towers of hanoitowers of hanoi
towers of hanoi
student
ย 
header, circular and two way linked lists
header, circular and two way linked listsheader, circular and two way linked lists
header, circular and two way linked lists
student
ย 
animals colours numbers idioms
animals colours numbers idiomsanimals colours numbers idioms
animals colours numbers idioms
student
ย 
irregular verbs
irregular verbsirregular verbs
irregular verbs
student
ย 
dc generator ece
dc generator ecedc generator ece
dc generator ece
student
ย 
INDUCTION MOTOR
INDUCTION MOTORINDUCTION MOTOR
INDUCTION MOTOR
student
ย 
structure and union
structure and unionstructure and union
structure and union
student
ย 
storage class
storage classstorage class
storage class
student
ย 
file handling1
file handling1file handling1
file handling1
student
ย 
direct and indirect band gap
direct and indirect band gapdirect and indirect band gap
direct and indirect band gap
student
ย 
hall effect
hall effecthall effect
hall effect
student
ย 
optics chapter_07_solution_manual
optics chapter_07_solution_manualoptics chapter_07_solution_manual
optics chapter_07_solution_manual
student
ย 
dyneins and kinesins
dyneins and kinesinsdyneins and kinesins
dyneins and kinesins
student
ย 
Structure and function of bacterial cells
Structure and function of bacterial cellsStructure and function of bacterial cells
Structure and function of bacterial cells
student
ย 

More from student (20)

Logic Gates
Logic GatesLogic Gates
Logic Gates
ย 
Flipflops and Excitation tables of flipflops
Flipflops and Excitation tables of flipflopsFlipflops and Excitation tables of flipflops
Flipflops and Excitation tables of flipflops
ย 
Number Systems
Number SystemsNumber Systems
Number Systems
ย 
towers of hanoi
towers of hanoitowers of hanoi
towers of hanoi
ย 
header, circular and two way linked lists
header, circular and two way linked listsheader, circular and two way linked lists
header, circular and two way linked lists
ย 
Arrays Data Structure
Arrays Data StructureArrays Data Structure
Arrays Data Structure
ย 
Number Systems
Number SystemsNumber Systems
Number Systems
ย 
BCD,GRAY and EXCESS 3 codes
BCD,GRAY and EXCESS 3 codesBCD,GRAY and EXCESS 3 codes
BCD,GRAY and EXCESS 3 codes
ย 
animals colours numbers idioms
animals colours numbers idiomsanimals colours numbers idioms
animals colours numbers idioms
ย 
irregular verbs
irregular verbsirregular verbs
irregular verbs
ย 
dc generator ece
dc generator ecedc generator ece
dc generator ece
ย 
INDUCTION MOTOR
INDUCTION MOTORINDUCTION MOTOR
INDUCTION MOTOR
ย 
structure and union
structure and unionstructure and union
structure and union
ย 
storage class
storage classstorage class
storage class
ย 
file handling1
file handling1file handling1
file handling1
ย 
direct and indirect band gap
direct and indirect band gapdirect and indirect band gap
direct and indirect band gap
ย 
hall effect
hall effecthall effect
hall effect
ย 
optics chapter_07_solution_manual
optics chapter_07_solution_manualoptics chapter_07_solution_manual
optics chapter_07_solution_manual
ย 
dyneins and kinesins
dyneins and kinesinsdyneins and kinesins
dyneins and kinesins
ย 
Structure and function of bacterial cells
Structure and function of bacterial cellsStructure and function of bacterial cells
Structure and function of bacterial cells
ย 

Recently uploaded

Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power Play
Epec Engineered Technologies
ย 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
Neometrix_Engineering_Pvt_Ltd
ย 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Kandungan 087776558899
ย 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
dollysharma2066
ย 
Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In New Ashok Nagar โ‰ผ๐Ÿ” Delhi door step de...
Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In New Ashok Nagar  โ‰ผ๐Ÿ” Delhi door step de...Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In New Ashok Nagar  โ‰ผ๐Ÿ” Delhi door step de...
Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In New Ashok Nagar โ‰ผ๐Ÿ” Delhi door step de...
9953056974 Low Rate Call Girls In Saket, Delhi NCR
ย 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
sivaprakash250
ย 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
dharasingh5698
ย 

Recently uploaded (20)

(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
ย 
Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power Play
ย 
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
ย 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ย 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineering
ย 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
ย 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
ย 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
ย 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leap
ย 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
ย 
Block diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptBlock diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.ppt
ย 
Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In New Ashok Nagar โ‰ผ๐Ÿ” Delhi door step de...
Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In New Ashok Nagar  โ‰ผ๐Ÿ” Delhi door step de...Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In New Ashok Nagar  โ‰ผ๐Ÿ” Delhi door step de...
Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In New Ashok Nagar โ‰ผ๐Ÿ” Delhi door step de...
ย 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
ย 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
ย 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
ย 
Employee leave management system project.
Employee leave management system project.Employee leave management system project.
Employee leave management system project.
ย 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
ย 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
ย 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdf
ย 
22-prompt engineering noted slide shown.pdf
22-prompt engineering noted slide shown.pdf22-prompt engineering noted slide shown.pdf
22-prompt engineering noted slide shown.pdf
ย 

binary arithmetic rules

  • 1. Binary Addition, Subtraction , Multiplication and division
  • 2. Binary addition:- A B Sum Carry 0 0 0 0 0 1 1 0 1 0 1 0 1 1 0 1 Binary subtraction:- A B Difference Borrow 0 0 0 0 0 1 1 1 1 0 1 0 1 1 0 0
  • 3. Add the following binary numbers: 1. (1001)2 and (0101)2 2. (101.01)2 and (1101.10)2 Subtract the following binary numbers: 1. (0110)2 from (1010)2 2. (01011)2 from (11011)2
  • 4. Binary Multiplication:- A B Output 0 0 0 0 1 0 1 0 0 1 1 1 Binary Division:- A B Output 0 1 0 1 1 1 Division by zero is meaning less
  • 5. Solve the following binary multiplication 1. (101)2 and (11)2 2. (1011)2 and (1001)2 Solve the following division 1.(11001) by (101) 2. (110000) by (100)
  • 6. 1โ€™s complement:- The 1โ€™s complement of binary number is obtained by changing each 0 to 1 and each 1 to 0. both the numbers complement each other. If one of these number is positive , the other will be negative with same magnitude and vice versa. 2โ€™s complement:- If 1 is added to 1โ€™s complement of a number then it will obtain the 2โ€™s complement of the number.
  • 7. Subtraction using 1โ€™s complement a) Subtraction of smaller number from a larger number:- 1. Calculate the 1โ€™s complement of a smaller number. 2. add the 1โ€™s complement to the larger number. 3. If carry comes in the MSB , remove the carry and add it to the result.
  • 8. Subtraction using 1โ€™s complement b) Subtraction of larger number from a smaller number:- 1.Calculate 1โ€™s complement of a larger number. 2. Add 1โ€™s complement in smaller number 3. The result will be in 1โ€™s complement form. Calculate 1โ€™s complement of final value and assign โ€“ve sign to the result.
  • 9. Advantages of using 1โ€™s complement subtraction 1. This can be easily obtained by simply inverting each bit in the number 2. This subtraction can be done with an binary adder. Thus ,it is useful in arithmetic logic circuits.
  • 10. Subtraction using 2โ€™s complement a) Subtraction of smaller number from a larger number:- 1. Calculate the 2โ€™s complement of a smaller number. 2. add the 2โ€™s complement to the larger number. 3. If carry comes in the MSB , discard the carry .
  • 11. Subtraction using 2โ€™s complement b) Subtraction of larger number from a smaller number:- 1.Calculate 2โ€™s complement of a larger number. 2. Add 2โ€™s complement in smaller number 3. The result will be in 2โ€™s complement form. Calculate 2โ€™s complement of final value and assign โ€“ve sign to the result.
  • 12. Unsigned and signed numbers Unsigned numbers:- ๏ƒ˜Numbers without any positive and negative sign. ๏ƒ˜Represents only magnitude
  • 13. Sign magnitude numbers:- ๏ƒ˜In binary number system, both +ve and โ€“ve values are possible. ๏ƒ˜In this , we use 0โ€™s and 1โ€™s to represent every number. The representation of number is known as signed number. 0๏ƒ +ve number 1๏ƒ  -ve number. Eg:- +7=0111 -7=1111 This kind of representation for signed numbers is called as signed magnitude representation.
  • 14. Different methods for the representation of binary signed numbers 1. Sign magnitude form 2. 1โ€™s complement form 3. 2โ€™s complment form