SlideShare a Scribd company logo
1 of 17
Download to read offline
REPRESENTATION
OF
BINARY NUMBERS
T.SRIKRISHNA
Representation of Binary Numbers:
• Binary numbers can be represented in signed
and unsigned way.
• Unsigned binary numbers do not have sign bit.
• Whereas signed binary numbers uses signed
bit as well as these can be distinguishable
between positive and negative numbers
T.Srikrishna, M.Sc, M.Tech. GVP
T.Srikrishna, M.Sc, M.Tech. GVP
1. Unsigned Numbers:
• Unsigned numbers don’t have any sign, these can
contain only magnitude of the number.
Representation of Unsigned Binary Numbers:
• Since there is no sign bit in this unsigned binary
number, so N bit binary number represent its
magnitude only.
• Zero (0) is also unsigned number. This representation
has only one zero (0), which is always positive.
• Example-1: Represent decimal number 92 in unsigned
binary number.
(92)10= (1011100)2
• It’s 7 bit binary magnitude of the decimal number 92.
T.Srikrishna, M.Sc, M.Tech. GVP
2. Signed Numbers:
• Signed numbers contain sign flag, this
representation distinguish positive and
negative numbers. This technique contains
both sign bit and magnitude of a number.
• (a) Signed Magnitude Method.
• (b) 1’s Complement Method.
• (c) 2’s Complement Method.
T.Srikrishna, M.Sc, M.Tech. GVP
2.(a)Signed Magnitude Method
• In this method, number is divided into two
parts: Sign bit and Magnitude.
• If the number is positive then sign bit will be 0
and if number is negative then sign bit will be 1.
• Example: Let we are using 5 bits register. The
representation of -5 to +5 will be as follows:
T.Srikrishna, M.Sc, M.Tech. GVP
• The drawback of this system is that 0 has two
different representation
• one is -0 (e.g., 1 0000 in five bit register) and
second is +0 (e.g., 0 0000 in five bit register).
T.Srikrishna, M.Sc, M.Tech. GVP
2.(b) 1’s Complement Method
• Positive numbers are represented in the same
way as they are represented in sign magnitude
method.
• If the number is negative then it is represented
using 1’s complement. First represent the number
with positive sign and then take 1’s complement
of that number.
1's complement
• The 1's complement of a number is found by
changing all 1's to 0's and all 0's to 1's. This is
called as taking complement or 1's complement.
T.Srikrishna, M.Sc, M.Tech. GVP
• Example of 1's Complement is as follows.
T.Srikrishna, M.Sc, M.Tech. GVP
• Example: Let we are using 5 bits register. The
representation of -5 and +5 will be as follows:
T.Srikrishna, M.Sc, M.Tech. GVP
• +5 is represented as it is represented in sign
magnitude method.
• -5 is represented using the following steps:
(i) +5 = 0 0101
(ii) Take 1’s complement of 0 0101 and that is
1 1010. MSB is 1 which indicates that number is
negative.
• MSB is always 1 in case of negative numbers.
T.Srikrishna, M.Sc, M.Tech. GVP
• Note that drawback of this system is that 0
has two different representation
• one is -0 (e.g., 1 1111 in five bit register) and
second is +0 (e.g., 0 0000 in five bit register).
T.Srikrishna, M.Sc, M.Tech. GVP
2.(c) 2’s Complement Method
• Positive numbers are represented in the same
way as they are represented in sign magnitude
method.
• If the number is negative then it is
represented using 2’s complement.
• First represent the number with positive sign
and then take 2’s complement of that number.
T.Srikrishna, M.Sc, M.Tech. GVP
2's complement
• The 2's complement of binary number is
obtained by adding 1 to the Least Significant
Bit (LSB) of 1's complement of the number.
• 2's complement = 1's complement + 1
• Example of 2's Complement is as follows.
T.Srikrishna, M.Sc, M.Tech. GVP
• Example: Let we are using 5 bits registers. The
representation of -5 and +5 will be as follows:
T.Srikrishna, M.Sc, M.Tech. GVP
• +5 is represented as it is represented in sign
magnitude method.
• -5 is represented using the following steps:
(i) +5 = 0 0101
(ii) Take 2’s complement of 0 0101 and that is
1 1011. MSB is 1 which indicates that number is
negative.
• MSB is always 1 in case of negative numbers.
T.Srikrishna, M.Sc, M.Tech. GVP
• The advantage of this system is that 0 has only
one representation for -0 and +0.
• Zero (0) is considered as always positive (sign
bit is 0) in 2’s complement representation.
Therefore, it is unique or unambiguous
representation.
T.Srikrishna, M.Sc, M.Tech. GVP

More Related Content

What's hot

Transistor Transistor Logic
Transistor Transistor LogicTransistor Transistor Logic
Transistor Transistor Logicsurat murthy
 
multiplexers and demultiplexers
 multiplexers and demultiplexers multiplexers and demultiplexers
multiplexers and demultiplexersUnsa Shakir
 
Stabilisation
StabilisationStabilisation
StabilisationAJAL A J
 
Design half ,full Adder and Subtractor
Design half ,full Adder and SubtractorDesign half ,full Adder and Subtractor
Design half ,full Adder and SubtractorJaimin@prt.ltd.
 
Magnitude comparator
Magnitude comparatorMagnitude comparator
Magnitude comparatorPreet_patel
 
integrator and differentiator op-amp
integrator and differentiator op-ampintegrator and differentiator op-amp
integrator and differentiator op-ampdanish iqbal
 
Fixed point and floating-point numbers
Fixed point and  floating-point numbersFixed point and  floating-point numbers
Fixed point and floating-point numbersMOHAN MOHAN
 
Binary parallel adder
Binary parallel adderBinary parallel adder
Binary parallel adderanu surya
 
Memory & I/O interfacing
Memory & I/O  interfacingMemory & I/O  interfacing
Memory & I/O interfacingdeval patel
 
Sequential multiplication
Sequential multiplicationSequential multiplication
Sequential multiplicationTaqwa It Center
 
transistor transistor logic
transistor transistor logictransistor transistor logic
transistor transistor logicmansi acharya
 
Encoders and decoders
Encoders and decodersEncoders and decoders
Encoders and decodersDeepikaDG1
 
3. Addressing Modes in 8085 microprocessor.pptx
3. Addressing Modes in 8085 microprocessor.pptx3. Addressing Modes in 8085 microprocessor.pptx
3. Addressing Modes in 8085 microprocessor.pptxISMT College
 
TTL Driving CMOS - Digital Electronic Presentation ALA 2018
TTL Driving CMOS - Digital Electronic Presentation ALA 2018TTL Driving CMOS - Digital Electronic Presentation ALA 2018
TTL Driving CMOS - Digital Electronic Presentation ALA 2018Mr. RahüL YøGi
 

What's hot (20)

Hamming code system
Hamming code systemHamming code system
Hamming code system
 
Transistor Transistor Logic
Transistor Transistor LogicTransistor Transistor Logic
Transistor Transistor Logic
 
multiplexers and demultiplexers
 multiplexers and demultiplexers multiplexers and demultiplexers
multiplexers and demultiplexers
 
Stabilisation
StabilisationStabilisation
Stabilisation
 
Design half ,full Adder and Subtractor
Design half ,full Adder and SubtractorDesign half ,full Adder and Subtractor
Design half ,full Adder and Subtractor
 
Complements
ComplementsComplements
Complements
 
Magnitude comparator
Magnitude comparatorMagnitude comparator
Magnitude comparator
 
integrator and differentiator op-amp
integrator and differentiator op-ampintegrator and differentiator op-amp
integrator and differentiator op-amp
 
Fixed point and floating-point numbers
Fixed point and  floating-point numbersFixed point and  floating-point numbers
Fixed point and floating-point numbers
 
K - Map
  K - Map    K - Map
K - Map
 
Binary parallel adder
Binary parallel adderBinary parallel adder
Binary parallel adder
 
Memory & I/O interfacing
Memory & I/O  interfacingMemory & I/O  interfacing
Memory & I/O interfacing
 
D Flip Flop
D Flip Flop D Flip Flop
D Flip Flop
 
Sequential multiplication
Sequential multiplicationSequential multiplication
Sequential multiplication
 
transistor transistor logic
transistor transistor logictransistor transistor logic
transistor transistor logic
 
Encoders and decoders
Encoders and decodersEncoders and decoders
Encoders and decoders
 
Karnaugh map
Karnaugh mapKarnaugh map
Karnaugh map
 
Parallel adder
Parallel adderParallel adder
Parallel adder
 
3. Addressing Modes in 8085 microprocessor.pptx
3. Addressing Modes in 8085 microprocessor.pptx3. Addressing Modes in 8085 microprocessor.pptx
3. Addressing Modes in 8085 microprocessor.pptx
 
TTL Driving CMOS - Digital Electronic Presentation ALA 2018
TTL Driving CMOS - Digital Electronic Presentation ALA 2018TTL Driving CMOS - Digital Electronic Presentation ALA 2018
TTL Driving CMOS - Digital Electronic Presentation ALA 2018
 

Similar to BInary Number Representation

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...Arti Parab Academics
 
Representation of Integers
Representation of IntegersRepresentation of Integers
Representation of IntegersSusantha Herath
 
CS304PC:Computer Organization and Architecture Unit- III PDF notes .pdf
CS304PC:Computer Organization and Architecture Unit- III PDF notes .pdfCS304PC:Computer Organization and Architecture Unit- III PDF notes .pdf
CS304PC:Computer Organization and Architecture Unit- III PDF notes .pdfAsst.prof M.Gokilavani
 
3.Fixed-Floating Point.ppt
3.Fixed-Floating Point.ppt3.Fixed-Floating Point.ppt
3.Fixed-Floating Point.pptRavikumarR77
 
chapter 2 part 2.pdf
chapter 2 part 2.pdfchapter 2 part 2.pdf
chapter 2 part 2.pdfPraches1
 
Insider mathematical
Insider   mathematicalInsider   mathematical
Insider mathematicalAditi Saxena
 
module 1_class_numbers.pptx
module 1_class_numbers.pptxmodule 1_class_numbers.pptx
module 1_class_numbers.pptxssuser2efca7
 
Chapter 2_Number system (EEEg4302).pdf
Chapter 2_Number system (EEEg4302).pdfChapter 2_Number system (EEEg4302).pdf
Chapter 2_Number system (EEEg4302).pdfTamiratDejene1
 
CS304PC:Computer Organization and Architecture Session 17 Complements and fix...
CS304PC:Computer Organization and Architecture Session 17 Complements and fix...CS304PC:Computer Organization and Architecture Session 17 Complements and fix...
CS304PC:Computer Organization and Architecture Session 17 Complements and fix...Asst.prof M.Gokilavani
 
digital logic circuits, digital component
digital logic circuits, digital componentdigital logic circuits, digital component
digital logic circuits, digital componentRai University
 

Similar to BInary Number Representation (20)

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...
 
Representation of Integers
Representation of IntegersRepresentation of Integers
Representation of Integers
 
CS304PC:Computer Organization and Architecture Unit- III PDF notes .pdf
CS304PC:Computer Organization and Architecture Unit- III PDF notes .pdfCS304PC:Computer Organization and Architecture Unit- III PDF notes .pdf
CS304PC:Computer Organization and Architecture Unit- III PDF notes .pdf
 
3.Fixed-Floating Point.ppt
3.Fixed-Floating Point.ppt3.Fixed-Floating Point.ppt
3.Fixed-Floating Point.ppt
 
chapter 2 part 2.pdf
chapter 2 part 2.pdfchapter 2 part 2.pdf
chapter 2 part 2.pdf
 
UNIT-3 Complete PPT.pptx
UNIT-3 Complete PPT.pptxUNIT-3 Complete PPT.pptx
UNIT-3 Complete PPT.pptx
 
Intengers!.pptx
Intengers!.pptxIntengers!.pptx
Intengers!.pptx
 
Insider mathematical
Insider   mathematicalInsider   mathematical
Insider mathematical
 
Prime Number (Sieve)
Prime Number (Sieve)Prime Number (Sieve)
Prime Number (Sieve)
 
module 1_class_numbers.pptx
module 1_class_numbers.pptxmodule 1_class_numbers.pptx
module 1_class_numbers.pptx
 
Mathematics Basic operations, fractions decimals and percentage.pptx
Mathematics Basic operations, fractions decimals and percentage.pptxMathematics Basic operations, fractions decimals and percentage.pptx
Mathematics Basic operations, fractions decimals and percentage.pptx
 
Chapter 2_Number system (EEEg4302).pdf
Chapter 2_Number system (EEEg4302).pdfChapter 2_Number system (EEEg4302).pdf
Chapter 2_Number system (EEEg4302).pdf
 
CS304PC:Computer Organization and Architecture Session 17 Complements and fix...
CS304PC:Computer Organization and Architecture Session 17 Complements and fix...CS304PC:Computer Organization and Architecture Session 17 Complements and fix...
CS304PC:Computer Organization and Architecture Session 17 Complements and fix...
 
PowerPointCh2_Section2.3.pdf
PowerPointCh2_Section2.3.pdfPowerPointCh2_Section2.3.pdf
PowerPointCh2_Section2.3.pdf
 
Number and operations review1
Number and operations review1Number and operations review1
Number and operations review1
 
UNIT 1 (1).pptx
UNIT 1 (1).pptxUNIT 1 (1).pptx
UNIT 1 (1).pptx
 
Representation of Negative Numbers
Representation of Negative NumbersRepresentation of Negative Numbers
Representation of Negative Numbers
 
digital logic circuits, digital component
digital logic circuits, digital componentdigital logic circuits, digital component
digital logic circuits, digital component
 
College algebra -REAL Numbers
College algebra -REAL NumbersCollege algebra -REAL Numbers
College algebra -REAL Numbers
 
Number system part 1
Number  system part 1Number  system part 1
Number system part 1
 

More from Srikrishna Thota

solar energy introduction.pdf
 solar energy introduction.pdf solar energy introduction.pdf
solar energy introduction.pdfSrikrishna Thota
 
8051 Architecture and PIN Configuration.pdf
8051 Architecture and PIN Configuration.pdf8051 Architecture and PIN Configuration.pdf
8051 Architecture and PIN Configuration.pdfSrikrishna Thota
 
Types of Microcontrollers.pdf
Types of Microcontrollers.pdfTypes of Microcontrollers.pdf
Types of Microcontrollers.pdfSrikrishna Thota
 
Addressing modes of 8051.pdf
Addressing modes of 8051.pdfAddressing modes of 8051.pdf
Addressing modes of 8051.pdfSrikrishna Thota
 
Port Organization of 8051 .pdf
Port Organization of 8051 .pdfPort Organization of 8051 .pdf
Port Organization of 8051 .pdfSrikrishna Thota
 
DEVELOPMENT TOOLS FOR MICROCONTROLLERS.pdf
DEVELOPMENT TOOLS FOR MICROCONTROLLERS.pdfDEVELOPMENT TOOLS FOR MICROCONTROLLERS.pdf
DEVELOPMENT TOOLS FOR MICROCONTROLLERS.pdfSrikrishna Thota
 
DAC Interfacing with 8051.pdf
DAC Interfacing with 8051.pdfDAC Interfacing with 8051.pdf
DAC Interfacing with 8051.pdfSrikrishna Thota
 
Interfacing of 8051 with 8255 Programmable Peripheral Interface.pdf
Interfacing of 8051 with 8255 Programmable Peripheral Interface.pdfInterfacing of 8051 with 8255 Programmable Peripheral Interface.pdf
Interfacing of 8051 with 8255 Programmable Peripheral Interface.pdfSrikrishna Thota
 
Seven segment interfacing with 8051.pdf
Seven segment interfacing with 8051.pdfSeven segment interfacing with 8051.pdf
Seven segment interfacing with 8051.pdfSrikrishna Thota
 
interfacing of temperature sensor LM 35 with 8051.pdf
interfacing of temperature sensor LM 35 with 8051.pdfinterfacing of temperature sensor LM 35 with 8051.pdf
interfacing of temperature sensor LM 35 with 8051.pdfSrikrishna Thota
 
Number Base Conversion Digital Electronics
Number Base Conversion Digital ElectronicsNumber Base Conversion Digital Electronics
Number Base Conversion Digital ElectronicsSrikrishna Thota
 
Digital Electronics Notes
Digital Electronics Notes Digital Electronics Notes
Digital Electronics Notes Srikrishna Thota
 
Microprocessor Interfacing and 8155 Features
Microprocessor Interfacing and 8155 FeaturesMicroprocessor Interfacing and 8155 Features
Microprocessor Interfacing and 8155 FeaturesSrikrishna Thota
 
Analog to Digital Conversion Basics
Analog to Digital Conversion BasicsAnalog to Digital Conversion Basics
Analog to Digital Conversion BasicsSrikrishna Thota
 
8259 programmable interrupt controller
8259 programmable interrupt controller8259 programmable interrupt controller
8259 programmable interrupt controllerSrikrishna Thota
 
8085 interfacing with memory chips
8085 interfacing with memory chips8085 interfacing with memory chips
8085 interfacing with memory chipsSrikrishna Thota
 

More from Srikrishna Thota (19)

solar energy introduction.pdf
 solar energy introduction.pdf solar energy introduction.pdf
solar energy introduction.pdf
 
8051 Architecture and PIN Configuration.pdf
8051 Architecture and PIN Configuration.pdf8051 Architecture and PIN Configuration.pdf
8051 Architecture and PIN Configuration.pdf
 
Types of Microcontrollers.pdf
Types of Microcontrollers.pdfTypes of Microcontrollers.pdf
Types of Microcontrollers.pdf
 
Addressing modes of 8051.pdf
Addressing modes of 8051.pdfAddressing modes of 8051.pdf
Addressing modes of 8051.pdf
 
interrupts of 8051.pdf
interrupts of 8051.pdfinterrupts of 8051.pdf
interrupts of 8051.pdf
 
Port Organization of 8051 .pdf
Port Organization of 8051 .pdfPort Organization of 8051 .pdf
Port Organization of 8051 .pdf
 
DEVELOPMENT TOOLS FOR MICROCONTROLLERS.pdf
DEVELOPMENT TOOLS FOR MICROCONTROLLERS.pdfDEVELOPMENT TOOLS FOR MICROCONTROLLERS.pdf
DEVELOPMENT TOOLS FOR MICROCONTROLLERS.pdf
 
DAC Interfacing with 8051.pdf
DAC Interfacing with 8051.pdfDAC Interfacing with 8051.pdf
DAC Interfacing with 8051.pdf
 
Interfacing of 8051 with 8255 Programmable Peripheral Interface.pdf
Interfacing of 8051 with 8255 Programmable Peripheral Interface.pdfInterfacing of 8051 with 8255 Programmable Peripheral Interface.pdf
Interfacing of 8051 with 8255 Programmable Peripheral Interface.pdf
 
Seven segment interfacing with 8051.pdf
Seven segment interfacing with 8051.pdfSeven segment interfacing with 8051.pdf
Seven segment interfacing with 8051.pdf
 
interfacing of temperature sensor LM 35 with 8051.pdf
interfacing of temperature sensor LM 35 with 8051.pdfinterfacing of temperature sensor LM 35 with 8051.pdf
interfacing of temperature sensor LM 35 with 8051.pdf
 
Number Base Conversion Digital Electronics
Number Base Conversion Digital ElectronicsNumber Base Conversion Digital Electronics
Number Base Conversion Digital Electronics
 
Operational amplifiers
Operational amplifiers Operational amplifiers
Operational amplifiers
 
Digital Electronics Notes
Digital Electronics Notes Digital Electronics Notes
Digital Electronics Notes
 
The 8255 PPI
The 8255 PPIThe 8255 PPI
The 8255 PPI
 
Microprocessor Interfacing and 8155 Features
Microprocessor Interfacing and 8155 FeaturesMicroprocessor Interfacing and 8155 Features
Microprocessor Interfacing and 8155 Features
 
Analog to Digital Conversion Basics
Analog to Digital Conversion BasicsAnalog to Digital Conversion Basics
Analog to Digital Conversion Basics
 
8259 programmable interrupt controller
8259 programmable interrupt controller8259 programmable interrupt controller
8259 programmable interrupt controller
 
8085 interfacing with memory chips
8085 interfacing with memory chips8085 interfacing with memory chips
8085 interfacing with memory chips
 

Recently uploaded

Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docxPoojaSen20
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
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
 
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
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 

Recently uploaded (20)

Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docx
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
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
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
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
 
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
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 

BInary Number Representation

  • 2. Representation of Binary Numbers: • Binary numbers can be represented in signed and unsigned way. • Unsigned binary numbers do not have sign bit. • Whereas signed binary numbers uses signed bit as well as these can be distinguishable between positive and negative numbers T.Srikrishna, M.Sc, M.Tech. GVP
  • 4. 1. Unsigned Numbers: • Unsigned numbers don’t have any sign, these can contain only magnitude of the number. Representation of Unsigned Binary Numbers: • Since there is no sign bit in this unsigned binary number, so N bit binary number represent its magnitude only. • Zero (0) is also unsigned number. This representation has only one zero (0), which is always positive. • Example-1: Represent decimal number 92 in unsigned binary number. (92)10= (1011100)2 • It’s 7 bit binary magnitude of the decimal number 92. T.Srikrishna, M.Sc, M.Tech. GVP
  • 5. 2. Signed Numbers: • Signed numbers contain sign flag, this representation distinguish positive and negative numbers. This technique contains both sign bit and magnitude of a number. • (a) Signed Magnitude Method. • (b) 1’s Complement Method. • (c) 2’s Complement Method. T.Srikrishna, M.Sc, M.Tech. GVP
  • 6. 2.(a)Signed Magnitude Method • In this method, number is divided into two parts: Sign bit and Magnitude. • If the number is positive then sign bit will be 0 and if number is negative then sign bit will be 1. • Example: Let we are using 5 bits register. The representation of -5 to +5 will be as follows: T.Srikrishna, M.Sc, M.Tech. GVP
  • 7. • The drawback of this system is that 0 has two different representation • one is -0 (e.g., 1 0000 in five bit register) and second is +0 (e.g., 0 0000 in five bit register). T.Srikrishna, M.Sc, M.Tech. GVP
  • 8. 2.(b) 1’s Complement Method • Positive numbers are represented in the same way as they are represented in sign magnitude method. • If the number is negative then it is represented using 1’s complement. First represent the number with positive sign and then take 1’s complement of that number. 1's complement • The 1's complement of a number is found by changing all 1's to 0's and all 0's to 1's. This is called as taking complement or 1's complement. T.Srikrishna, M.Sc, M.Tech. GVP
  • 9. • Example of 1's Complement is as follows. T.Srikrishna, M.Sc, M.Tech. GVP
  • 10. • Example: Let we are using 5 bits register. The representation of -5 and +5 will be as follows: T.Srikrishna, M.Sc, M.Tech. GVP
  • 11. • +5 is represented as it is represented in sign magnitude method. • -5 is represented using the following steps: (i) +5 = 0 0101 (ii) Take 1’s complement of 0 0101 and that is 1 1010. MSB is 1 which indicates that number is negative. • MSB is always 1 in case of negative numbers. T.Srikrishna, M.Sc, M.Tech. GVP
  • 12. • Note that drawback of this system is that 0 has two different representation • one is -0 (e.g., 1 1111 in five bit register) and second is +0 (e.g., 0 0000 in five bit register). T.Srikrishna, M.Sc, M.Tech. GVP
  • 13. 2.(c) 2’s Complement Method • Positive numbers are represented in the same way as they are represented in sign magnitude method. • If the number is negative then it is represented using 2’s complement. • First represent the number with positive sign and then take 2’s complement of that number. T.Srikrishna, M.Sc, M.Tech. GVP
  • 14. 2's complement • The 2's complement of binary number is obtained by adding 1 to the Least Significant Bit (LSB) of 1's complement of the number. • 2's complement = 1's complement + 1 • Example of 2's Complement is as follows. T.Srikrishna, M.Sc, M.Tech. GVP
  • 15. • Example: Let we are using 5 bits registers. The representation of -5 and +5 will be as follows: T.Srikrishna, M.Sc, M.Tech. GVP
  • 16. • +5 is represented as it is represented in sign magnitude method. • -5 is represented using the following steps: (i) +5 = 0 0101 (ii) Take 2’s complement of 0 0101 and that is 1 1011. MSB is 1 which indicates that number is negative. • MSB is always 1 in case of negative numbers. T.Srikrishna, M.Sc, M.Tech. GVP
  • 17. • The advantage of this system is that 0 has only one representation for -0 and +0. • Zero (0) is considered as always positive (sign bit is 0) in 2’s complement representation. Therefore, it is unique or unambiguous representation. T.Srikrishna, M.Sc, M.Tech. GVP