SlideShare a Scribd company logo
1 of 9
MIPS FLOATING POINT
REPRESENTATION
BINARY FLOATING POINT REPRESENTATION
(-1)S x 1.F x 2E
Normalized Floating Point Number
s = Sign Bit ( 0 for +ve and 1 for –ve)
F = Fraction / Mantissa
E = Exponent
Eg: +1.01010011 x 2-7
s = 0
F = 01010011
E = -7
BINARY FLOATING POINT REPRESENTATION
(-1)S x 1.F x 2E
Normalized Floating Point Number
s = Sign Bit ( 0 for +ve and 1 for –ve)
F = Fraction / Mantissa
E = Exponent
Eg: -1.11010 x 25
s = 1
F = 11010
E = 5
IEEE 754 BINARY FLOATING POINT REPRESENTATION
Single Precision Representation Double Precision Representation
A floating-point value represented in a single 32-bit word. A floating-point value represented in two 32-bitwords.
31 30……......23 22……………………………….0
S E’ Fraction
63 62……......52 51……………………………….0
S E’ Fraction
E’ = E + 127 E’ = E + 1023
1 8 23 1 11 52
EXAMPLE 1
Show the IEEE 754 binary representation of the number -0.7510 in single precision
Binary Representation
0.75 x 2 = 1.50 1
0.50 x 2 = 1.00 1
-0.75 = -0.11
Normalization
-0.11 = -1.1 x 2-1
(-1)S x 1.F x 2E s = 1, F = 1, E = -1, E’ = E + 127 = -1 + 127 = 126
31 30……......23 22……………………………….0
1 111 1110
1 8 23
0 1000 0000 0000 0000 0000 000
EXAMPLE 1
Show the IEEE 754 binary representation of the number -0.7510 in Double precision
Binary Representation
0.75 x 2 = 1.50 1
0.50 x 2 = 1.00 1
-0.75 = -0.11
Normalization
-0.11 = -1.1 x 2-1
(-1)S x 1.F x 2E s = 1, F = 1, E = -1, E’ = E + 1023 = -1 + 1023 = 1022
63 62……......52 51……………………………….0
1 111 1111 110
1 11 52
0
1 000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
0000
0000
EXAMPLE 2
Show the IEEE 754 binary representation of the number +0.6010 in single precision
+0.6 = +0.1001
Normalization
+0.6 = +1.0011001 x 2-1
(-1)S x 1.F x 2E s = 0, F = 0011001, E = -1
E’ = E + 127 = -1 + 127 = 126
31 30……......23 22……………………………….0
0 111 1110
1 8 23
0 001 1001 1001 1001 1001 1001 1001 1001
0.40 x 2 = 0.80 0
0.80 x 2 = 1.60 1
0.60 x 2 = 1.20 1
0.20 x 2 = 0.40 0
0.20 x 2 = 0.40 0
0.60 x 2 = 1.20 1
Binary Representation
. . . .
. .
001 1001 1001 1001 1001 1010
G R S Rounding Action
0 0 0 Truncate
0 0 1 Truncate
0 1 0 Truncate
0 1 1 Truncate
1 0 0 Round to Even
1 0 1 Round Up
1 1 0 Round Up
1 1 1 Round Up
OTHER IEEE 754 BINARY
FLOATING POINT REPRESENTATION
Half Precision Representation
A floating-point value represented in a 16-bit half word.
15 14……......10 9……………………………….0
S E’ Fraction
E’ = E + 15
1 5 10
IEEE 754-2008 contains a half precision that is only 16 bits wide. The left most bit is still the sign bit, the
exponent is 5 bits wide and has a bias of 15, and the mantissa is 10 bits long. A hidden 1 is assumed. Write
down the bit pattern to represent 1.5625 x 10-1 assuming a version of this format, which uses an excess-16
format to store the exponent.
0.6250 x 2 = 1.250 1
0.250 x 2 = 0.50 0
0.31250 x 2 = 0.6250 0
0.15625 x 2 = 0.31250 0
Binary Representation
0.15625 = +0.00101
1.5625 x 10-1 = 0.15625
0.50 x 2 = 1.00 1
(-1)S x 1.F x 2E s = 0, F = 01, E = -3,
E’ = E + 15 = -3 + 15 = 12
15 14……......10 9……………….0
0 1100
1 5 10
0 01 0000 0000
+1.01 x 2-3
Computer Organization and Design by David A Patterson – Page no. 239
+1.01 x 2-3

More Related Content

What's hot

Chapter 1 digital systems and binary numbers
Chapter 1 digital systems and binary numbersChapter 1 digital systems and binary numbers
Chapter 1 digital systems and binary numbersMohammad Bashartullah
 
digital logic circuits, digital component
digital logic circuits, digital componentdigital logic circuits, digital component
digital logic circuits, digital componentRai University
 
Chapter 07 Digital Alrithmetic and Arithmetic Circuits
Chapter 07 Digital Alrithmetic and Arithmetic CircuitsChapter 07 Digital Alrithmetic and Arithmetic Circuits
Chapter 07 Digital Alrithmetic and Arithmetic CircuitsSSE_AndyLi
 
Chapter 01 Basic Principles of Digital Systems
Chapter 01 Basic Principles of Digital SystemsChapter 01 Basic Principles of Digital Systems
Chapter 01 Basic Principles of Digital SystemsSSE_AndyLi
 
Ceng232 Decoder Multiplexer Adder
Ceng232 Decoder Multiplexer AdderCeng232 Decoder Multiplexer Adder
Ceng232 Decoder Multiplexer Addergueste731a4
 
Anonymous Remote Arbitrary Code Execution in Alien Arena
Anonymous Remote Arbitrary Code Execution in Alien ArenaAnonymous Remote Arbitrary Code Execution in Alien Arena
Anonymous Remote Arbitrary Code Execution in Alien ArenaJason Geffner
 

What's hot (16)

Chapter 1 digital systems and binary numbers
Chapter 1 digital systems and binary numbersChapter 1 digital systems and binary numbers
Chapter 1 digital systems and binary numbers
 
González viviana
González vivianaGonzález viviana
González viviana
 
Elibeth ramones
Elibeth ramonesElibeth ramones
Elibeth ramones
 
digital logic circuits, digital component
digital logic circuits, digital componentdigital logic circuits, digital component
digital logic circuits, digital component
 
Codes
CodesCodes
Codes
 
Chapter 07 Digital Alrithmetic and Arithmetic Circuits
Chapter 07 Digital Alrithmetic and Arithmetic CircuitsChapter 07 Digital Alrithmetic and Arithmetic Circuits
Chapter 07 Digital Alrithmetic and Arithmetic Circuits
 
LAB 4.docx
LAB 4.docxLAB 4.docx
LAB 4.docx
 
Chapter 01 Basic Principles of Digital Systems
Chapter 01 Basic Principles of Digital SystemsChapter 01 Basic Principles of Digital Systems
Chapter 01 Basic Principles of Digital Systems
 
07Decoders121
07Decoders12107Decoders121
07Decoders121
 
Digital 1 8
Digital 1 8Digital 1 8
Digital 1 8
 
Number system
Number systemNumber system
Number system
 
Ceng232 Decoder Multiplexer Adder
Ceng232 Decoder Multiplexer AdderCeng232 Decoder Multiplexer Adder
Ceng232 Decoder Multiplexer Adder
 
Lec5 encoder
Lec5 encoderLec5 encoder
Lec5 encoder
 
Anonymous Remote Arbitrary Code Execution in Alien Arena
Anonymous Remote Arbitrary Code Execution in Alien ArenaAnonymous Remote Arbitrary Code Execution in Alien Arena
Anonymous Remote Arbitrary Code Execution in Alien Arena
 
Dpsd lecture-notes
Dpsd lecture-notesDpsd lecture-notes
Dpsd lecture-notes
 
Complex number
Complex numberComplex number
Complex number
 

Similar to Floating point Binary Represenataion

Floating Point Represenataion.pptx
Floating Point Represenataion.pptxFloating Point Represenataion.pptx
Floating Point Represenataion.pptxKarthikeyanC53
 
Floating point representation and arithmetic
Floating point representation and arithmeticFloating point representation and arithmetic
Floating point representation and arithmeticAvirajKaushik
 
Aviraj --floating point representation and arithmetic.pptx
Aviraj --floating point representation and arithmetic.pptxAviraj --floating point representation and arithmetic.pptx
Aviraj --floating point representation and arithmetic.pptxIronmanhmarvel
 
IEEE floating point representation
 IEEE floating point representation IEEE floating point representation
IEEE floating point representationMaskurAlShalSabil
 
IEEE 754 Standards For Floating Point Representation.pdf
IEEE 754 Standards For Floating Point   Representation.pdfIEEE 754 Standards For Floating Point   Representation.pdf
IEEE 754 Standards For Floating Point Representation.pdfkkumaraditya301
 
L12-FloatingPoint.ppt
L12-FloatingPoint.pptL12-FloatingPoint.ppt
L12-FloatingPoint.pptDevcond
 
BOOTH ALGO, DIVISION(RESTORING _ NON RESTORING) etc etc
BOOTH ALGO, DIVISION(RESTORING _ NON RESTORING) etc etcBOOTH ALGO, DIVISION(RESTORING _ NON RESTORING) etc etc
BOOTH ALGO, DIVISION(RESTORING _ NON RESTORING) etc etcAbhishek Rajpoot
 
International Journal of Engineering Research and Development
International Journal of Engineering Research and DevelopmentInternational Journal of Engineering Research and Development
International Journal of Engineering Research and DevelopmentIJERD Editor
 
chapter1digitalsystemsandbinarynumbers-151021072016-lva1-app6891.pptx
chapter1digitalsystemsandbinarynumbers-151021072016-lva1-app6891.pptxchapter1digitalsystemsandbinarynumbers-151021072016-lva1-app6891.pptx
chapter1digitalsystemsandbinarynumbers-151021072016-lva1-app6891.pptxSurendra Loya
 
Logic Design 2009
Logic Design 2009Logic Design 2009
Logic Design 2009lionking
 
1. NUMBER SYSTEM.pptx Computer Applications in Pharmacy
1. NUMBER SYSTEM.pptx Computer Applications in Pharmacy1. NUMBER SYSTEM.pptx Computer Applications in Pharmacy
1. NUMBER SYSTEM.pptx Computer Applications in PharmacyVedika Narvekar
 
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
 

Similar to Floating point Binary Represenataion (20)

Floating Point Represenataion.pptx
Floating Point Represenataion.pptxFloating Point Represenataion.pptx
Floating Point Represenataion.pptx
 
Floating point representation and arithmetic
Floating point representation and arithmeticFloating point representation and arithmetic
Floating point representation and arithmetic
 
Aviraj --floating point representation and arithmetic.pptx
Aviraj --floating point representation and arithmetic.pptxAviraj --floating point representation and arithmetic.pptx
Aviraj --floating point representation and arithmetic.pptx
 
Floating Point Numbers
Floating Point NumbersFloating Point Numbers
Floating Point Numbers
 
IEEE floating point representation
 IEEE floating point representation IEEE floating point representation
IEEE floating point representation
 
IEEE 754 Standards For Floating Point Representation.pdf
IEEE 754 Standards For Floating Point   Representation.pdfIEEE 754 Standards For Floating Point   Representation.pdf
IEEE 754 Standards For Floating Point Representation.pdf
 
Number system
Number systemNumber system
Number system
 
L12-FloatingPoint.ppt
L12-FloatingPoint.pptL12-FloatingPoint.ppt
L12-FloatingPoint.ppt
 
BOOTH ALGO, DIVISION(RESTORING _ NON RESTORING) etc etc
BOOTH ALGO, DIVISION(RESTORING _ NON RESTORING) etc etcBOOTH ALGO, DIVISION(RESTORING _ NON RESTORING) etc etc
BOOTH ALGO, DIVISION(RESTORING _ NON RESTORING) etc etc
 
Class10
Class10Class10
Class10
 
International Journal of Engineering Research and Development
International Journal of Engineering Research and DevelopmentInternational Journal of Engineering Research and Development
International Journal of Engineering Research and Development
 
chapter1digitalsystemsandbinarynumbers-151021072016-lva1-app6891.pptx
chapter1digitalsystemsandbinarynumbers-151021072016-lva1-app6891.pptxchapter1digitalsystemsandbinarynumbers-151021072016-lva1-app6891.pptx
chapter1digitalsystemsandbinarynumbers-151021072016-lva1-app6891.pptx
 
Class10
Class10Class10
Class10
 
Chpater 6
Chpater 6Chpater 6
Chpater 6
 
Logic Design 2009
Logic Design 2009Logic Design 2009
Logic Design 2009
 
1. NUMBER SYSTEM.pptx Computer Applications in Pharmacy
1. NUMBER SYSTEM.pptx Computer Applications in Pharmacy1. NUMBER SYSTEM.pptx Computer Applications in Pharmacy
1. NUMBER SYSTEM.pptx Computer Applications in Pharmacy
 
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
 
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
 

More from babuece

Hardware Multi-Threading
Hardware Multi-ThreadingHardware Multi-Threading
Hardware Multi-Threadingbabuece
 
Introduction to Advance Computer Architecture
Introduction to Advance Computer ArchitectureIntroduction to Advance Computer Architecture
Introduction to Advance Computer Architecturebabuece
 
Clusters and Wharehouse Scale Computers
Clusters and Wharehouse Scale ComputersClusters and Wharehouse Scale Computers
Clusters and Wharehouse Scale Computersbabuece
 
Introduction to GPU
Introduction to GPUIntroduction to GPU
Introduction to GPUbabuece
 
Shared Memory Multi Processor
Shared Memory Multi ProcessorShared Memory Multi Processor
Shared Memory Multi Processorbabuece
 
Instruction Level Parallelism | Static Multiple Issue & Dynamic Multiple Issu...
Instruction Level Parallelism | Static Multiple Issue & Dynamic Multiple Issu...Instruction Level Parallelism | Static Multiple Issue & Dynamic Multiple Issu...
Instruction Level Parallelism | Static Multiple Issue & Dynamic Multiple Issu...babuece
 
Exception | How Exceptions are Handled in MIPS architecture
Exception | How Exceptions are Handled in MIPS architectureException | How Exceptions are Handled in MIPS architecture
Exception | How Exceptions are Handled in MIPS architecturebabuece
 
Introduction to Embedded Laboratory EC 8711
Introduction to Embedded Laboratory EC 8711 Introduction to Embedded Laboratory EC 8711
Introduction to Embedded Laboratory EC 8711 babuece
 
Pipeline hazards | Structural Hazard, Data Hazard & Control Hazard
Pipeline hazards | Structural Hazard, Data Hazard & Control HazardPipeline hazards | Structural Hazard, Data Hazard & Control Hazard
Pipeline hazards | Structural Hazard, Data Hazard & Control Hazardbabuece
 
Implementation of pipelining in datapath
Implementation of pipelining in datapathImplementation of pipelining in datapath
Implementation of pipelining in datapathbabuece
 
Datapath design with control unit
Datapath design with control unitDatapath design with control unit
Datapath design with control unitbabuece
 
Introduction to datapath design
Introduction to datapath designIntroduction to datapath design
Introduction to datapath designbabuece
 
Introduction to floating point Arithmetic
Introduction to floating point ArithmeticIntroduction to floating point Arithmetic
Introduction to floating point Arithmeticbabuece
 
Improved version of division
Improved version of divisionImproved version of division
Improved version of divisionbabuece
 
Booth's algorithm part 3
Booth's algorithm part 3Booth's algorithm part 3
Booth's algorithm part 3babuece
 
Booth's algorithm part 1
Booth's algorithm part 1Booth's algorithm part 1
Booth's algorithm part 1babuece
 
Modified booths algorithm part 1
Modified booths algorithm part 1Modified booths algorithm part 1
Modified booths algorithm part 1babuece
 
Booth's algorithm part 2
Booth's algorithm part 2Booth's algorithm part 2
Booth's algorithm part 2babuece
 
Booth's algorithm part 4
Booth's algorithm part 4Booth's algorithm part 4
Booth's algorithm part 4babuece
 
Modified booth's algorithm Part 2
Modified booth's algorithm Part 2Modified booth's algorithm Part 2
Modified booth's algorithm Part 2babuece
 

More from babuece (20)

Hardware Multi-Threading
Hardware Multi-ThreadingHardware Multi-Threading
Hardware Multi-Threading
 
Introduction to Advance Computer Architecture
Introduction to Advance Computer ArchitectureIntroduction to Advance Computer Architecture
Introduction to Advance Computer Architecture
 
Clusters and Wharehouse Scale Computers
Clusters and Wharehouse Scale ComputersClusters and Wharehouse Scale Computers
Clusters and Wharehouse Scale Computers
 
Introduction to GPU
Introduction to GPUIntroduction to GPU
Introduction to GPU
 
Shared Memory Multi Processor
Shared Memory Multi ProcessorShared Memory Multi Processor
Shared Memory Multi Processor
 
Instruction Level Parallelism | Static Multiple Issue & Dynamic Multiple Issu...
Instruction Level Parallelism | Static Multiple Issue & Dynamic Multiple Issu...Instruction Level Parallelism | Static Multiple Issue & Dynamic Multiple Issu...
Instruction Level Parallelism | Static Multiple Issue & Dynamic Multiple Issu...
 
Exception | How Exceptions are Handled in MIPS architecture
Exception | How Exceptions are Handled in MIPS architectureException | How Exceptions are Handled in MIPS architecture
Exception | How Exceptions are Handled in MIPS architecture
 
Introduction to Embedded Laboratory EC 8711
Introduction to Embedded Laboratory EC 8711 Introduction to Embedded Laboratory EC 8711
Introduction to Embedded Laboratory EC 8711
 
Pipeline hazards | Structural Hazard, Data Hazard & Control Hazard
Pipeline hazards | Structural Hazard, Data Hazard & Control HazardPipeline hazards | Structural Hazard, Data Hazard & Control Hazard
Pipeline hazards | Structural Hazard, Data Hazard & Control Hazard
 
Implementation of pipelining in datapath
Implementation of pipelining in datapathImplementation of pipelining in datapath
Implementation of pipelining in datapath
 
Datapath design with control unit
Datapath design with control unitDatapath design with control unit
Datapath design with control unit
 
Introduction to datapath design
Introduction to datapath designIntroduction to datapath design
Introduction to datapath design
 
Introduction to floating point Arithmetic
Introduction to floating point ArithmeticIntroduction to floating point Arithmetic
Introduction to floating point Arithmetic
 
Improved version of division
Improved version of divisionImproved version of division
Improved version of division
 
Booth's algorithm part 3
Booth's algorithm part 3Booth's algorithm part 3
Booth's algorithm part 3
 
Booth's algorithm part 1
Booth's algorithm part 1Booth's algorithm part 1
Booth's algorithm part 1
 
Modified booths algorithm part 1
Modified booths algorithm part 1Modified booths algorithm part 1
Modified booths algorithm part 1
 
Booth's algorithm part 2
Booth's algorithm part 2Booth's algorithm part 2
Booth's algorithm part 2
 
Booth's algorithm part 4
Booth's algorithm part 4Booth's algorithm part 4
Booth's algorithm part 4
 
Modified booth's algorithm Part 2
Modified booth's algorithm Part 2Modified booth's algorithm Part 2
Modified booth's algorithm Part 2
 

Recently uploaded

chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learningmisbanausheenparvam
 
Introduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxIntroduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxvipinkmenon1
 
complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...asadnawaz62
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSCAESB
 
HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2RajaP95
 
Electronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfElectronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfme23b1001
 
Churning of Butter, Factors affecting .
Churning of Butter, Factors affecting  .Churning of Butter, Factors affecting  .
Churning of Butter, Factors affecting .Satyam Kumar
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVRajaP95
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfAsst.prof M.Gokilavani
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx959SahilShah
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130Suhani Kapoor
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerAnamika Sarkar
 
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETEINFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETEroselinkalist12
 
power system scada applications and uses
power system scada applications and usespower system scada applications and uses
power system scada applications and usesDevarapalliHaritha
 

Recently uploaded (20)

9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
 
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learning
 
Introduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxIntroduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptx
 
complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...
 
Design and analysis of solar grass cutter.pdf
Design and analysis of solar grass cutter.pdfDesign and analysis of solar grass cutter.pdf
Design and analysis of solar grass cutter.pdf
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentation
 
HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2
 
Electronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfElectronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdf
 
Churning of Butter, Factors affecting .
Churning of Butter, Factors affecting  .Churning of Butter, Factors affecting  .
Churning of Butter, Factors affecting .
 
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx
 
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCRCall Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
 
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptxExploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
 
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETEINFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
 
power system scada applications and uses
power system scada applications and usespower system scada applications and uses
power system scada applications and uses
 
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Serviceyoung call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
 

Floating point Binary Represenataion

  • 2. BINARY FLOATING POINT REPRESENTATION (-1)S x 1.F x 2E Normalized Floating Point Number s = Sign Bit ( 0 for +ve and 1 for –ve) F = Fraction / Mantissa E = Exponent Eg: +1.01010011 x 2-7 s = 0 F = 01010011 E = -7
  • 3. BINARY FLOATING POINT REPRESENTATION (-1)S x 1.F x 2E Normalized Floating Point Number s = Sign Bit ( 0 for +ve and 1 for –ve) F = Fraction / Mantissa E = Exponent Eg: -1.11010 x 25 s = 1 F = 11010 E = 5
  • 4. IEEE 754 BINARY FLOATING POINT REPRESENTATION Single Precision Representation Double Precision Representation A floating-point value represented in a single 32-bit word. A floating-point value represented in two 32-bitwords. 31 30……......23 22……………………………….0 S E’ Fraction 63 62……......52 51……………………………….0 S E’ Fraction E’ = E + 127 E’ = E + 1023 1 8 23 1 11 52
  • 5. EXAMPLE 1 Show the IEEE 754 binary representation of the number -0.7510 in single precision Binary Representation 0.75 x 2 = 1.50 1 0.50 x 2 = 1.00 1 -0.75 = -0.11 Normalization -0.11 = -1.1 x 2-1 (-1)S x 1.F x 2E s = 1, F = 1, E = -1, E’ = E + 127 = -1 + 127 = 126 31 30……......23 22……………………………….0 1 111 1110 1 8 23 0 1000 0000 0000 0000 0000 000
  • 6. EXAMPLE 1 Show the IEEE 754 binary representation of the number -0.7510 in Double precision Binary Representation 0.75 x 2 = 1.50 1 0.50 x 2 = 1.00 1 -0.75 = -0.11 Normalization -0.11 = -1.1 x 2-1 (-1)S x 1.F x 2E s = 1, F = 1, E = -1, E’ = E + 1023 = -1 + 1023 = 1022 63 62……......52 51……………………………….0 1 111 1111 110 1 11 52 0 1 000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
  • 7. EXAMPLE 2 Show the IEEE 754 binary representation of the number +0.6010 in single precision +0.6 = +0.1001 Normalization +0.6 = +1.0011001 x 2-1 (-1)S x 1.F x 2E s = 0, F = 0011001, E = -1 E’ = E + 127 = -1 + 127 = 126 31 30……......23 22……………………………….0 0 111 1110 1 8 23 0 001 1001 1001 1001 1001 1001 1001 1001 0.40 x 2 = 0.80 0 0.80 x 2 = 1.60 1 0.60 x 2 = 1.20 1 0.20 x 2 = 0.40 0 0.20 x 2 = 0.40 0 0.60 x 2 = 1.20 1 Binary Representation . . . . . . 001 1001 1001 1001 1001 1010 G R S Rounding Action 0 0 0 Truncate 0 0 1 Truncate 0 1 0 Truncate 0 1 1 Truncate 1 0 0 Round to Even 1 0 1 Round Up 1 1 0 Round Up 1 1 1 Round Up
  • 8. OTHER IEEE 754 BINARY FLOATING POINT REPRESENTATION Half Precision Representation A floating-point value represented in a 16-bit half word. 15 14……......10 9……………………………….0 S E’ Fraction E’ = E + 15 1 5 10
  • 9. IEEE 754-2008 contains a half precision that is only 16 bits wide. The left most bit is still the sign bit, the exponent is 5 bits wide and has a bias of 15, and the mantissa is 10 bits long. A hidden 1 is assumed. Write down the bit pattern to represent 1.5625 x 10-1 assuming a version of this format, which uses an excess-16 format to store the exponent. 0.6250 x 2 = 1.250 1 0.250 x 2 = 0.50 0 0.31250 x 2 = 0.6250 0 0.15625 x 2 = 0.31250 0 Binary Representation 0.15625 = +0.00101 1.5625 x 10-1 = 0.15625 0.50 x 2 = 1.00 1 (-1)S x 1.F x 2E s = 0, F = 01, E = -3, E’ = E + 15 = -3 + 15 = 12 15 14……......10 9……………….0 0 1100 1 5 10 0 01 0000 0000 +1.01 x 2-3 Computer Organization and Design by David A Patterson – Page no. 239 +1.01 x 2-3