SlideShare a Scribd company logo
2
Most read
3
Most read
10
Most read
IEEE-754 Floating point
representation(Unit-2)
Prepared by : Snehalata Agasti
CSE department
Floating point representation
• Two types of Number system presentation
➢Fixed point representation
➢Floating point representation
Floating point representation of number consists of 3 parts
➢ Sign bit
➢Exponent
➢Mantissa
• Normally represented as
• Two formats used for representation
➢Single precision format/Excess-127 format
➢Double precision format/Excess-1023 format
S E M
Floating Point
• Floating point consists of two parts:- Mantissa
Exponent
• Let number is 14.5 .
• Point before number is Exponent.
• Number after point is Mantissa.
• Used to represent very small numbers like fractions and very large
numbers.
• Floating point representation is used in High level languages in the form of
float(32-bits) and double(64-bits).
Floating point presentation
Presentation of Floating point Number
• We may present the floating point number using Single precision
format/double precision format.
• We know that floating point is represented as :-
• Number:
• Single precision format is also known as Excess-127 format.
S E M
Exponent
1011 .1
Mantissa
Explanation of Exponent
• Exponent is of two types :- original exponent [e]
• - Stored Exponent [E’]
• E’ is computed using formula:-
• Bias is same as Excess-X code. E.g. Excess-3 code means 0 will be counted
as 0+3=3, 1 as 1+3=4.
• Similarly if original bias is e and biased exponent is in the form Excess-32
then Biased Exponent is e+32.
• If exponent is presented in k-bits then bias value is 2k-1 -1.
• Note -: Biased Exponent means Exponent is not stored directly. It is stored
as original bias + Excess-x format.[x value is anything.]
E’ =e+ bias
Mantissa
• Mantissa is number after the point.
• When we are going to present mantissa in memory it is presented in
normalised format.
• In Explicit normalised form number is present after the point. E.g.
1011.1 -> number can be normalise as 0.10111 x 2 4 . [instead of 10 base 2 is used]
Implicit
Normalized
form
Explicit
Normalised
Form
Cont…
• In Explicit normalised form point is present by leaving one bit value
and that value is 1. Means presented as 1.---
• Let the number is 1011.1 .
• Implicit Presentation of number in memory 1.0111 x 2 3.
• Original exponent(e) is 3.
• Biased exponent is(E’)= 127+3=130 [As we are presenting using
excess-127 format]
Explanation of problem using Explicit
normalised form
• 11.5 is represented as 1011.1 in binary system.
• Normalised value of 1011.1 is 0.10111 x 24 in explicit normalised
form.
• Now mantissa is 0.10111 and represented in 23 bit.
• Exponent is presented in 8 bit. Biased exponent(E’) is 127+4=131.
Binary of 131 is 10000011.
• Sign bit will be 0 as number is positive. Only 1 bit is left for sign.
0 1 0 0 0 0 0 1 1 1 0 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Exponent
Sign Mantissa
Floating point representation using implicit
normalised form
• Floating point number=13.5 .
• Binary presentation of number (13.5)10 = (1101.1)2 .
• Now implicit normalised form of the number is 1101.1 = 1.1011 x23 .
• So original bias[e] = 3 .
• Stored bias[E’] = 127+3 = 130 = 10000010
• Mantissa is .1011
• Now floating point presentation of number is
0 10000010 1011000……………0
Sign bit Exponent Mantissa
Implicit and Explicit presentation of Floating
point number in double precision format
• (13.5)10 = (1101.1)2
0 000 1000 0011 11011 000000 …. …0
0 000 1000 0010 1011 000 ……….. …0
Sign bit(1) Exponent(11) Mantissa(53)
Explicit Representation of Floating point Number
Implicit representation of floating point number
Floating point presentation

More Related Content

PPTX
Quick tutorial on IEEE 754 FLOATING POINT representation
PPSX
Fixed point and floating-point numbers
PPTX
IEEE floating point representation
PPTX
Floating point representation
PPTX
06 floating point
PPT
Floating point arithmetic
PPT
DATA REPRESENTATION
PPTX
Floating point arithmetic operations (1)
Quick tutorial on IEEE 754 FLOATING POINT representation
Fixed point and floating-point numbers
IEEE floating point representation
Floating point representation
06 floating point
Floating point arithmetic
DATA REPRESENTATION
Floating point arithmetic operations (1)

What's hot (20)

PPTX
Multiplication algorithm
PPT
BCD,GRAY and EXCESS 3 codes
PPTX
Binary arithmetic
PPTX
3.codes( binary code ,excess 3, gray code )
PPTX
1s and 2s complement
PPT
Complements
PPT
Number systems ppt
PPTX
PPT
Instruction cycle
PPTX
Code conversion
PPTX
Control unit design
PDF
Binaty Arithmetic and Binary coding schemes
PPS
Synchronous and-asynchronous-data-transfer
PPTX
PPT
C program
PPT
Instruction Set Architecture (ISA)
PPTX
Unit 3 combinational circuits
PPTX
Microoperations
PPTX
Binary parallel adder
PPTX
Register transfer language
Multiplication algorithm
BCD,GRAY and EXCESS 3 codes
Binary arithmetic
3.codes( binary code ,excess 3, gray code )
1s and 2s complement
Complements
Number systems ppt
Instruction cycle
Code conversion
Control unit design
Binaty Arithmetic and Binary coding schemes
Synchronous and-asynchronous-data-transfer
C program
Instruction Set Architecture (ISA)
Unit 3 combinational circuits
Microoperations
Binary parallel adder
Register transfer language
Ad

Similar to Floating point presentation (20)

PDF
IEEE 754 Standards For Floating Point Representation.pdf
PDF
3. IEEE 754 FLOATING POINT For Comp. ORG.pdf
PPTX
computer arithmetic’s (fixed and floating point)
PPT
Representation of Real Numbers
PDF
LEC-3-CAO-FLOATING-POINT-REPRESENTATION.pdf
PDF
Ieee+floating
PDF
FIXED and FLOATING-POINT-REPRESENTATION.pdf
PDF
International Journal of Engineering Research and Development
PDF
Floating Point Numbers
PPTX
IEEE Floating Point Number with Single and Double Precision(Analog and Digita...
PPTX
FloatingPoint2pptbyproffessorsfromrenowedinstitute.pptx
PPTX
Floating point
PPTX
Digital signal processing and architecture
PPTX
Digital signal processing and architecture
PDF
Data types - things you have to know!
PPTX
Lecture 5
PPT
SD & D Real Numbers
PPTX
Representation of numbers.pptx
PPTX
IEEE-754 standard format to handle Floating-Point calculations in RISC-V CPUs...
PDF
IRJET- Implementation of Floating Point FFT Processor with Single Precision f...
IEEE 754 Standards For Floating Point Representation.pdf
3. IEEE 754 FLOATING POINT For Comp. ORG.pdf
computer arithmetic’s (fixed and floating point)
Representation of Real Numbers
LEC-3-CAO-FLOATING-POINT-REPRESENTATION.pdf
Ieee+floating
FIXED and FLOATING-POINT-REPRESENTATION.pdf
International Journal of Engineering Research and Development
Floating Point Numbers
IEEE Floating Point Number with Single and Double Precision(Analog and Digita...
FloatingPoint2pptbyproffessorsfromrenowedinstitute.pptx
Floating point
Digital signal processing and architecture
Digital signal processing and architecture
Data types - things you have to know!
Lecture 5
SD & D Real Numbers
Representation of numbers.pptx
IEEE-754 standard format to handle Floating-Point calculations in RISC-V CPUs...
IRJET- Implementation of Floating Point FFT Processor with Single Precision f...
Ad

More from SnehalataAgasti (7)

PDF
Hazards in pipeline
PDF
Cache replacement policies,cache miss,writingtechniques
PPTX
Associative memory and set associative memory mapping
PDF
Memory mapping
PDF
Memory organisation
PDF
BOOTH Algorithm for Multiplication
PDF
Division algorithm
Hazards in pipeline
Cache replacement policies,cache miss,writingtechniques
Associative memory and set associative memory mapping
Memory mapping
Memory organisation
BOOTH Algorithm for Multiplication
Division algorithm

Recently uploaded (20)

PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
PPTX
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
PPTX
bas. eng. economics group 4 presentation 1.pptx
PDF
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PDF
Arduino robotics embedded978-1-4302-3184-4.pdf
PPTX
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
PDF
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
PPTX
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PPTX
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
PPTX
additive manufacturing of ss316l using mig welding
PPTX
Foundation to blockchain - A guide to Blockchain Tech
PPT
Mechanical Engineering MATERIALS Selection
PPTX
Internet of Things (IOT) - A guide to understanding
PPTX
Construction Project Organization Group 2.pptx
PPTX
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
PPTX
Lecture Notes Electrical Wiring System Components
PDF
Digital Logic Computer Design lecture notes
PPTX
Geodesy 1.pptx...............................................
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
bas. eng. economics group 4 presentation 1.pptx
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
Arduino robotics embedded978-1-4302-3184-4.pdf
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
additive manufacturing of ss316l using mig welding
Foundation to blockchain - A guide to Blockchain Tech
Mechanical Engineering MATERIALS Selection
Internet of Things (IOT) - A guide to understanding
Construction Project Organization Group 2.pptx
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
Lecture Notes Electrical Wiring System Components
Digital Logic Computer Design lecture notes
Geodesy 1.pptx...............................................

Floating point presentation

  • 1. IEEE-754 Floating point representation(Unit-2) Prepared by : Snehalata Agasti CSE department
  • 2. Floating point representation • Two types of Number system presentation ➢Fixed point representation ➢Floating point representation Floating point representation of number consists of 3 parts ➢ Sign bit ➢Exponent ➢Mantissa • Normally represented as • Two formats used for representation ➢Single precision format/Excess-127 format ➢Double precision format/Excess-1023 format S E M
  • 3. Floating Point • Floating point consists of two parts:- Mantissa Exponent • Let number is 14.5 . • Point before number is Exponent. • Number after point is Mantissa. • Used to represent very small numbers like fractions and very large numbers. • Floating point representation is used in High level languages in the form of float(32-bits) and double(64-bits).
  • 5. Presentation of Floating point Number • We may present the floating point number using Single precision format/double precision format. • We know that floating point is represented as :- • Number: • Single precision format is also known as Excess-127 format. S E M Exponent 1011 .1 Mantissa
  • 6. Explanation of Exponent • Exponent is of two types :- original exponent [e] • - Stored Exponent [E’] • E’ is computed using formula:- • Bias is same as Excess-X code. E.g. Excess-3 code means 0 will be counted as 0+3=3, 1 as 1+3=4. • Similarly if original bias is e and biased exponent is in the form Excess-32 then Biased Exponent is e+32. • If exponent is presented in k-bits then bias value is 2k-1 -1. • Note -: Biased Exponent means Exponent is not stored directly. It is stored as original bias + Excess-x format.[x value is anything.] E’ =e+ bias
  • 7. Mantissa • Mantissa is number after the point. • When we are going to present mantissa in memory it is presented in normalised format. • In Explicit normalised form number is present after the point. E.g. 1011.1 -> number can be normalise as 0.10111 x 2 4 . [instead of 10 base 2 is used] Implicit Normalized form Explicit Normalised Form
  • 8. Cont… • In Explicit normalised form point is present by leaving one bit value and that value is 1. Means presented as 1.--- • Let the number is 1011.1 . • Implicit Presentation of number in memory 1.0111 x 2 3. • Original exponent(e) is 3. • Biased exponent is(E’)= 127+3=130 [As we are presenting using excess-127 format]
  • 9. Explanation of problem using Explicit normalised form • 11.5 is represented as 1011.1 in binary system. • Normalised value of 1011.1 is 0.10111 x 24 in explicit normalised form. • Now mantissa is 0.10111 and represented in 23 bit. • Exponent is presented in 8 bit. Biased exponent(E’) is 127+4=131. Binary of 131 is 10000011. • Sign bit will be 0 as number is positive. Only 1 bit is left for sign. 0 1 0 0 0 0 0 1 1 1 0 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Exponent Sign Mantissa
  • 10. Floating point representation using implicit normalised form • Floating point number=13.5 . • Binary presentation of number (13.5)10 = (1101.1)2 . • Now implicit normalised form of the number is 1101.1 = 1.1011 x23 . • So original bias[e] = 3 . • Stored bias[E’] = 127+3 = 130 = 10000010 • Mantissa is .1011 • Now floating point presentation of number is 0 10000010 1011000……………0 Sign bit Exponent Mantissa
  • 11. Implicit and Explicit presentation of Floating point number in double precision format • (13.5)10 = (1101.1)2 0 000 1000 0011 11011 000000 …. …0 0 000 1000 0010 1011 000 ……….. …0 Sign bit(1) Exponent(11) Mantissa(53) Explicit Representation of Floating point Number Implicit representation of floating point number