SlideShare a Scribd company logo
1 of 9
MIPS FLOATING POINT
REPRESENTATION
Mr. C.KARTHIKEYAN,
ASSISTANT PROFESSOR,
ECE , RMKCET
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
1000 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

Similar to Floating Point Represenataion.pptx

IEEE floating point representation
 IEEE floating point representation IEEE floating point representation
IEEE floating point representationMaskurAlShalSabil
 
L12-FloatingPoint.ppt
L12-FloatingPoint.pptL12-FloatingPoint.ppt
L12-FloatingPoint.pptDevcond
 
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
 
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
 
chapter1digitalsystemsandbinarynumbers-151021072016-lva1-app6891.pptx
chapter1digitalsystemsandbinarynumbers-151021072016-lva1-app6891.pptxchapter1digitalsystemsandbinarynumbers-151021072016-lva1-app6891.pptx
chapter1digitalsystemsandbinarynumbers-151021072016-lva1-app6891.pptxSurendra Loya
 
Fixed point and floating-point numbers
Fixed point and  floating-point numbersFixed point and  floating-point numbers
Fixed point and floating-point numbersMOHAN MOHAN
 
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
 
Logic Design 2009
Logic Design 2009Logic Design 2009
Logic Design 2009lionking
 
Data types - things you have to know!
Data types - things you have to know!Data types - things you have to know!
Data types - things you have to know!Karol Sobiesiak
 
unit-i-number-systems.pdf
unit-i-number-systems.pdfunit-i-number-systems.pdf
unit-i-number-systems.pdfRameshK531901
 
Comp Arithmetic Basic.ppt
Comp Arithmetic Basic.pptComp Arithmetic Basic.ppt
Comp Arithmetic Basic.pptskatiarrahaman
 
Excess 3 to bcd converter
Excess 3 to bcd converterExcess 3 to bcd converter
Excess 3 to bcd converterGarla Prajwal
 
Digital_Electronics_Basics.pdf
Digital_Electronics_Basics.pdfDigital_Electronics_Basics.pdf
Digital_Electronics_Basics.pdfrahul143341
 
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
 

Similar to Floating Point Represenataion.pptx (20)

IEEE floating point representation
 IEEE floating point representation IEEE floating point representation
IEEE floating point representation
 
L12-FloatingPoint.ppt
L12-FloatingPoint.pptL12-FloatingPoint.ppt
L12-FloatingPoint.ppt
 
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
 
Class10
Class10Class10
Class10
 
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
 
Number system
Number systemNumber system
Number system
 
chapter1digitalsystemsandbinarynumbers-151021072016-lva1-app6891.pptx
chapter1digitalsystemsandbinarynumbers-151021072016-lva1-app6891.pptxchapter1digitalsystemsandbinarynumbers-151021072016-lva1-app6891.pptx
chapter1digitalsystemsandbinarynumbers-151021072016-lva1-app6891.pptx
 
Fixed point and floating-point numbers
Fixed point and  floating-point numbersFixed point and  floating-point numbers
Fixed point and floating-point numbers
 
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
 
Chpater 6
Chpater 6Chpater 6
Chpater 6
 
Class10
Class10Class10
Class10
 
Logic Design 2009
Logic Design 2009Logic Design 2009
Logic Design 2009
 
Data types - things you have to know!
Data types - things you have to know!Data types - things you have to know!
Data types - things you have to know!
 
unit-i-number-systems.pdf
unit-i-number-systems.pdfunit-i-number-systems.pdf
unit-i-number-systems.pdf
 
08. Numeral Systems
08. Numeral Systems08. Numeral Systems
08. Numeral Systems
 
Comp Arithmetic Basic.ppt
Comp Arithmetic Basic.pptComp Arithmetic Basic.ppt
Comp Arithmetic Basic.ppt
 
Class03
Class03Class03
Class03
 
Excess 3 to bcd converter
Excess 3 to bcd converterExcess 3 to bcd converter
Excess 3 to bcd converter
 
Digital_Electronics_Basics.pdf
Digital_Electronics_Basics.pdfDigital_Electronics_Basics.pdf
Digital_Electronics_Basics.pdf
 
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
 

More from KarthikeyanC53

3. Virtual Memory.pptx
3. Virtual Memory.pptx3. Virtual Memory.pptx
3. Virtual Memory.pptxKarthikeyanC53
 
1. Introduction to Memory.pptx
1. Introduction to Memory.pptx1. Introduction to Memory.pptx
1. Introduction to Memory.pptxKarthikeyanC53
 
4. Pipeline Hazards.pptx
4. Pipeline Hazards.pptx4. Pipeline Hazards.pptx
4. Pipeline Hazards.pptxKarthikeyanC53
 
3. Implementation of Pipelining in Datapath.pptx
3. Implementation of Pipelining in Datapath.pptx3. Implementation of Pipelining in Datapath.pptx
3. Implementation of Pipelining in Datapath.pptxKarthikeyanC53
 
2. Datapath Design with Control Unit.pptx
2. Datapath Design with Control Unit.pptx2. Datapath Design with Control Unit.pptx
2. Datapath Design with Control Unit.pptxKarthikeyanC53
 
1. Introduction to Datapath Design.pptx
1. Introduction to Datapath Design.pptx1. Introduction to Datapath Design.pptx
1. Introduction to Datapath Design.pptxKarthikeyanC53
 
Floating Point Multiplication.pptx
Floating Point Multiplication.pptxFloating Point Multiplication.pptx
Floating Point Multiplication.pptxKarthikeyanC53
 
Floating Point Addition.pptx
Floating Point Addition.pptxFloating Point Addition.pptx
Floating Point Addition.pptxKarthikeyanC53
 
Refined Version of Division.pptx
Refined Version of Division.pptxRefined Version of Division.pptx
Refined Version of Division.pptxKarthikeyanC53
 
Version 1 Division.pptx
Version 1 Division.pptxVersion 1 Division.pptx
Version 1 Division.pptxKarthikeyanC53
 
BOOTH’s ALGORITHM Part 1.pptx
BOOTH’s ALGORITHM Part 1.pptxBOOTH’s ALGORITHM Part 1.pptx
BOOTH’s ALGORITHM Part 1.pptxKarthikeyanC53
 
2. Addition and Subtraction.pptx
2. Addition and Subtraction.pptx2. Addition and Subtraction.pptx
2. Addition and Subtraction.pptxKarthikeyanC53
 
1. Introduction to Arithmetic.pptx
1. Introduction to Arithmetic.pptx1. Introduction to Arithmetic.pptx
1. Introduction to Arithmetic.pptxKarthikeyanC53
 
5. Addressing Modes.pptx
5. Addressing Modes.pptx5. Addressing Modes.pptx
5. Addressing Modes.pptxKarthikeyanC53
 
4.Instruction Formats.pptx
4.Instruction Formats.pptx4.Instruction Formats.pptx
4.Instruction Formats.pptxKarthikeyanC53
 
3. Instruction Set.pptx
3. Instruction Set.pptx3. Instruction Set.pptx
3. Instruction Set.pptxKarthikeyanC53
 

More from KarthikeyanC53 (20)

3. Virtual Memory.pptx
3. Virtual Memory.pptx3. Virtual Memory.pptx
3. Virtual Memory.pptx
 
2. Cache Mapping.pptx
2. Cache Mapping.pptx2. Cache Mapping.pptx
2. Cache Mapping.pptx
 
1. Introduction to Memory.pptx
1. Introduction to Memory.pptx1. Introduction to Memory.pptx
1. Introduction to Memory.pptx
 
6. ILP.pptx
6. ILP.pptx6. ILP.pptx
6. ILP.pptx
 
5. Exception.pptx
5. Exception.pptx5. Exception.pptx
5. Exception.pptx
 
4. Pipeline Hazards.pptx
4. Pipeline Hazards.pptx4. Pipeline Hazards.pptx
4. Pipeline Hazards.pptx
 
3. Implementation of Pipelining in Datapath.pptx
3. Implementation of Pipelining in Datapath.pptx3. Implementation of Pipelining in Datapath.pptx
3. Implementation of Pipelining in Datapath.pptx
 
2. Datapath Design with Control Unit.pptx
2. Datapath Design with Control Unit.pptx2. Datapath Design with Control Unit.pptx
2. Datapath Design with Control Unit.pptx
 
1. Introduction to Datapath Design.pptx
1. Introduction to Datapath Design.pptx1. Introduction to Datapath Design.pptx
1. Introduction to Datapath Design.pptx
 
Floating Point Multiplication.pptx
Floating Point Multiplication.pptxFloating Point Multiplication.pptx
Floating Point Multiplication.pptx
 
Floating Point Addition.pptx
Floating Point Addition.pptxFloating Point Addition.pptx
Floating Point Addition.pptx
 
Refined Version of Division.pptx
Refined Version of Division.pptxRefined Version of Division.pptx
Refined Version of Division.pptx
 
Version 1 Division.pptx
Version 1 Division.pptxVersion 1 Division.pptx
Version 1 Division.pptx
 
BOOTH’s ALGORITHM Part 1.pptx
BOOTH’s ALGORITHM Part 1.pptxBOOTH’s ALGORITHM Part 1.pptx
BOOTH’s ALGORITHM Part 1.pptx
 
2. Addition and Subtraction.pptx
2. Addition and Subtraction.pptx2. Addition and Subtraction.pptx
2. Addition and Subtraction.pptx
 
1. Introduction to Arithmetic.pptx
1. Introduction to Arithmetic.pptx1. Introduction to Arithmetic.pptx
1. Introduction to Arithmetic.pptx
 
6.Performance.pptx
6.Performance.pptx6.Performance.pptx
6.Performance.pptx
 
5. Addressing Modes.pptx
5. Addressing Modes.pptx5. Addressing Modes.pptx
5. Addressing Modes.pptx
 
4.Instruction Formats.pptx
4.Instruction Formats.pptx4.Instruction Formats.pptx
4.Instruction Formats.pptx
 
3. Instruction Set.pptx
3. Instruction Set.pptx3. Instruction Set.pptx
3. Instruction Set.pptx
 

Recently uploaded

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 Bookingdharasingh5698
 
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 Performancesivaprakash250
 
Employee leave management system project.
Employee leave management system project.Employee leave management system project.
Employee leave management system project.Kamal Acharya
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXssuser89054b
 
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Bookingdharasingh5698
 
DC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationDC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationBhangaleSonal
 
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Standamitlee9823
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTbhaskargani46
 
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 Bookingroncy bisnoi
 
Introduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaIntroduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaOmar Fathy
 
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.pptNANDHAKUMARA10
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptDineshKumar4165
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VDineshKumar4165
 
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoorTop Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoordharasingh5698
 
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 engineeringmulugeta48
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfRagavanV2
 

Recently uploaded (20)

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
 
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
 
Employee leave management system project.
Employee leave management system project.Employee leave management system project.
Employee leave management system project.
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
 
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
DC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationDC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equation
 
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
 
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
 
Introduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaIntroduction to Serverless with AWS Lambda
Introduction to Serverless with AWS Lambda
 
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced LoadsFEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
 
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
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
(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
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoorTop Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
 
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
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdf
 
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 

Floating Point Represenataion.pptx

  • 1. MIPS FLOATING POINT REPRESENTATION Mr. C.KARTHIKEYAN, ASSISTANT PROFESSOR, ECE , RMKCET
  • 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 1000 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