SlideShare a Scribd company logo
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

What's hot

Representation Of Numbers and Characters
Representation Of Numbers and CharactersRepresentation Of Numbers and Characters
Representation Of Numbers and Characters
Shaikh Kamrul Islam (Konok kamrul)
 
06 floating point
06 floating point06 floating point
06 floating point
Piyush Rochwani
 
Digital logic design part1
Digital logic design part1Digital logic design part1
Digital logic design part1
Vaagdevi College of Engineering
 
Number system
Number systemNumber system
Number system
Sajib
 
Binary Arithmetic
Binary ArithmeticBinary Arithmetic
Binary Arithmetic
Meenakshi Paul
 
Floating point arithmetic
Floating point arithmeticFloating point arithmetic
Floating point arithmetic
vishal choudhary
 
Number Systems and Binary Aritmetics
Number Systems and Binary AritmeticsNumber Systems and Binary Aritmetics
Number Systems and Binary Aritmetics
Delowar Hossain
 
Codes
CodesCodes
Bcd
BcdBcd
Chapter 1: Binary System
 Chapter 1: Binary System Chapter 1: Binary System
Chapter 1: Binary System
Er. Nawaraj Bhandari
 
Topic 1 Data Representation
Topic 1 Data RepresentationTopic 1 Data Representation
Topic 1 Data Representation
ekul
 
Binary codes
Binary codesBinary codes
Binary codes
Revathi Subramaniam
 
Number System
Number SystemNumber System
Binary Arithmetic
Binary ArithmeticBinary Arithmetic
Binary Arithmetic
gavhays
 
Chap 2 discrete_time_signal_and_systems
Chap 2 discrete_time_signal_and_systemsChap 2 discrete_time_signal_and_systems
Chap 2 discrete_time_signal_and_systems
Prof. Ihab Ali
 
Lecture ascii and ebcdic codes
Lecture ascii and ebcdic codesLecture ascii and ebcdic codes
Lecture ascii and ebcdic codes
Yazdan Yousafzai
 
Data representation
Data representationData representation
Data representation
shashikant pabari
 
Memory banking-of-8086-final
Memory banking-of-8086-finalMemory banking-of-8086-final
Memory banking-of-8086-final
Estiak Khan
 
Complements of numbers
Complements of numbersComplements of numbers
Complements of numbers
Kiriti Varkur
 
Parity Generator and Parity Checker
Parity Generator and Parity CheckerParity Generator and Parity Checker
Parity Generator and Parity Checker
Jignesh Navdiya
 

What's hot (20)

Representation Of Numbers and Characters
Representation Of Numbers and CharactersRepresentation Of Numbers and Characters
Representation Of Numbers and Characters
 
06 floating point
06 floating point06 floating point
06 floating point
 
Digital logic design part1
Digital logic design part1Digital logic design part1
Digital logic design part1
 
Number system
Number systemNumber system
Number system
 
Binary Arithmetic
Binary ArithmeticBinary Arithmetic
Binary Arithmetic
 
Floating point arithmetic
Floating point arithmeticFloating point arithmetic
Floating point arithmetic
 
Number Systems and Binary Aritmetics
Number Systems and Binary AritmeticsNumber Systems and Binary Aritmetics
Number Systems and Binary Aritmetics
 
Codes
CodesCodes
Codes
 
Bcd
BcdBcd
Bcd
 
Chapter 1: Binary System
 Chapter 1: Binary System Chapter 1: Binary System
Chapter 1: Binary System
 
Topic 1 Data Representation
Topic 1 Data RepresentationTopic 1 Data Representation
Topic 1 Data Representation
 
Binary codes
Binary codesBinary codes
Binary codes
 
Number System
Number SystemNumber System
Number System
 
Binary Arithmetic
Binary ArithmeticBinary Arithmetic
Binary Arithmetic
 
Chap 2 discrete_time_signal_and_systems
Chap 2 discrete_time_signal_and_systemsChap 2 discrete_time_signal_and_systems
Chap 2 discrete_time_signal_and_systems
 
Lecture ascii and ebcdic codes
Lecture ascii and ebcdic codesLecture ascii and ebcdic codes
Lecture ascii and ebcdic codes
 
Data representation
Data representationData representation
Data representation
 
Memory banking-of-8086-final
Memory banking-of-8086-finalMemory banking-of-8086-final
Memory banking-of-8086-final
 
Complements of numbers
Complements of numbersComplements of numbers
Complements of numbers
 
Parity Generator and Parity Checker
Parity Generator and Parity CheckerParity Generator and Parity Checker
Parity Generator and Parity Checker
 

Similar to Floating point presentation

Representation of Real Numbers
Representation of Real NumbersRepresentation of Real Numbers
Representation of Real Numbers
Forrester High School
 
Counit2
Counit2Counit2
Counit2
Himanshu Dua
 
arithmetic
arithmeticarithmetic
arithmetic
SaifullahSiddiqui7
 
09 arithmetic
09 arithmetic09 arithmetic
09 arithmetic
dilip kumar
 
09 arithmetic
09 arithmetic09 arithmetic
09 arithmetic
Sher Shah Merkhel
 
09 arithmetic 2
09 arithmetic 209 arithmetic 2
09 arithmetic 2
Sher Shah Merkhel
 
09 arithmetic
09 arithmetic09 arithmetic
09 arithmetic
argiaggi
 
Floating_point_representation.pdf
Floating_point_representation.pdfFloating_point_representation.pdf
Floating_point_representation.pdf
RameshK531901
 
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
Abhishek Rajpoot
 
3.Fixed-Floating Point.ppt
3.Fixed-Floating Point.ppt3.Fixed-Floating Point.ppt
3.Fixed-Floating Point.ppt
RavikumarR77
 
09 Arithmetic
09  Arithmetic09  Arithmetic
09 Arithmetic
Jeanie Delos Arcos
 
Floating Point Representation premium.pptx
Floating Point Representation premium.pptxFloating Point Representation premium.pptx
Floating Point Representation premium.pptx
shomikishpa
 
Representation of numbers.pptx
Representation of numbers.pptxRepresentation of numbers.pptx
Representation of numbers.pptx
ssuserb7effa
 
Computer Representation of Numbers and.pptx
Computer Representation of Numbers and.pptxComputer Representation of Numbers and.pptx
Computer Representation of Numbers and.pptx
Temesgen Geta
 
Materi Program.ppt
Materi Program.pptMateri Program.ppt
Materi Program.ppt
FARIZMARIZANFIKRI202
 
Module 2_Data representations.pdf
Module 2_Data representations.pdfModule 2_Data representations.pdf
Module 2_Data representations.pdf
Aditya kishore saxena
 
Chapter 02 Data Types
Chapter 02   Data TypesChapter 02   Data Types
Chapter 02 Data Types
Nathan Yeung
 
SD & D Real Numbers
SD & D Real NumbersSD & D Real Numbers
SD & D Real Numbers
Forrester High School
 
Chapter 6
Chapter 6Chapter 6
Floating Point Numbers
Floating Point NumbersFloating Point Numbers
Floating Point Numbers
Jason Ricardo Thomas
 

Similar to Floating point presentation (20)

Representation of Real Numbers
Representation of Real NumbersRepresentation of Real Numbers
Representation of Real Numbers
 
Counit2
Counit2Counit2
Counit2
 
arithmetic
arithmeticarithmetic
arithmetic
 
09 arithmetic
09 arithmetic09 arithmetic
09 arithmetic
 
09 arithmetic
09 arithmetic09 arithmetic
09 arithmetic
 
09 arithmetic 2
09 arithmetic 209 arithmetic 2
09 arithmetic 2
 
09 arithmetic
09 arithmetic09 arithmetic
09 arithmetic
 
Floating_point_representation.pdf
Floating_point_representation.pdfFloating_point_representation.pdf
Floating_point_representation.pdf
 
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
 
3.Fixed-Floating Point.ppt
3.Fixed-Floating Point.ppt3.Fixed-Floating Point.ppt
3.Fixed-Floating Point.ppt
 
09 Arithmetic
09  Arithmetic09  Arithmetic
09 Arithmetic
 
Floating Point Representation premium.pptx
Floating Point Representation premium.pptxFloating Point Representation premium.pptx
Floating Point Representation premium.pptx
 
Representation of numbers.pptx
Representation of numbers.pptxRepresentation of numbers.pptx
Representation of numbers.pptx
 
Computer Representation of Numbers and.pptx
Computer Representation of Numbers and.pptxComputer Representation of Numbers and.pptx
Computer Representation of Numbers and.pptx
 
Materi Program.ppt
Materi Program.pptMateri Program.ppt
Materi Program.ppt
 
Module 2_Data representations.pdf
Module 2_Data representations.pdfModule 2_Data representations.pdf
Module 2_Data representations.pdf
 
Chapter 02 Data Types
Chapter 02   Data TypesChapter 02   Data Types
Chapter 02 Data Types
 
SD & D Real Numbers
SD & D Real NumbersSD & D Real Numbers
SD & D Real Numbers
 
Chapter 6
Chapter 6Chapter 6
Chapter 6
 
Floating Point Numbers
Floating Point NumbersFloating Point Numbers
Floating Point Numbers
 

More from SnehalataAgasti

Hazards in pipeline
Hazards in pipelineHazards in pipeline
Hazards in pipeline
SnehalataAgasti
 
Cache replacement policies,cache miss,writingtechniques
Cache replacement policies,cache miss,writingtechniquesCache replacement policies,cache miss,writingtechniques
Cache replacement policies,cache miss,writingtechniques
SnehalataAgasti
 
Associative memory and set associative memory mapping
Associative memory and set associative memory mappingAssociative memory and set associative memory mapping
Associative memory and set associative memory mapping
SnehalataAgasti
 
Memory mapping
Memory mappingMemory mapping
Memory mapping
SnehalataAgasti
 
Memory organisation
Memory organisationMemory organisation
Memory organisation
SnehalataAgasti
 
BOOTH Algorithm for Multiplication
BOOTH Algorithm for MultiplicationBOOTH Algorithm for Multiplication
BOOTH Algorithm for Multiplication
SnehalataAgasti
 
Division algorithm
Division algorithmDivision algorithm
Division algorithm
SnehalataAgasti
 

More from SnehalataAgasti (7)

Hazards in pipeline
Hazards in pipelineHazards in pipeline
Hazards in pipeline
 
Cache replacement policies,cache miss,writingtechniques
Cache replacement policies,cache miss,writingtechniquesCache replacement policies,cache miss,writingtechniques
Cache replacement policies,cache miss,writingtechniques
 
Associative memory and set associative memory mapping
Associative memory and set associative memory mappingAssociative memory and set associative memory mapping
Associative memory and set associative memory mapping
 
Memory mapping
Memory mappingMemory mapping
Memory mapping
 
Memory organisation
Memory organisationMemory organisation
Memory organisation
 
BOOTH Algorithm for Multiplication
BOOTH Algorithm for MultiplicationBOOTH Algorithm for Multiplication
BOOTH Algorithm for Multiplication
 
Division algorithm
Division algorithmDivision algorithm
Division algorithm
 

Recently uploaded

Recycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part IIIRecycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part III
Aditya Rajan Patra
 
ISPM 15 Heat Treated Wood Stamps and why your shipping must have one
ISPM 15 Heat Treated Wood Stamps and why your shipping must have oneISPM 15 Heat Treated Wood Stamps and why your shipping must have one
ISPM 15 Heat Treated Wood Stamps and why your shipping must have one
Las Vegas Warehouse
 
Understanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine LearningUnderstanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine Learning
SUTEJAS
 
basic-wireline-operations-course-mahmoud-f-radwan.pdf
basic-wireline-operations-course-mahmoud-f-radwan.pdfbasic-wireline-operations-course-mahmoud-f-radwan.pdf
basic-wireline-operations-course-mahmoud-f-radwan.pdf
NidhalKahouli2
 
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
insn4465
 
5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...
5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...
5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...
ihlasbinance2003
 
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODELDEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
gerogepatton
 
Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...
Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...
Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...
IJECEIAES
 
IEEE Aerospace and Electronic Systems Society as a Graduate Student Member
IEEE Aerospace and Electronic Systems Society as a Graduate Student MemberIEEE Aerospace and Electronic Systems Society as a Graduate Student Member
IEEE Aerospace and Electronic Systems Society as a Graduate Student Member
VICTOR MAESTRE RAMIREZ
 
The Python for beginners. This is an advance computer language.
The Python for beginners. This is an advance computer language.The Python for beginners. This is an advance computer language.
The Python for beginners. This is an advance computer language.
sachin chaurasia
 
学校原版美国波士顿大学毕业证学历学位证书原版一模一样
学校原版美国波士顿大学毕业证学历学位证书原版一模一样学校原版美国波士顿大学毕业证学历学位证书原版一模一样
学校原版美国波士顿大学毕业证学历学位证书原版一模一样
171ticu
 
Generative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of contentGenerative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of content
Hitesh Mohapatra
 
New techniques for characterising damage in rock slopes.pdf
New techniques for characterising damage in rock slopes.pdfNew techniques for characterising damage in rock slopes.pdf
New techniques for characterising damage in rock slopes.pdf
wisnuprabawa3
 
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Sinan KOZAK
 
Advanced control scheme of doubly fed induction generator for wind turbine us...
Advanced control scheme of doubly fed induction generator for wind turbine us...Advanced control scheme of doubly fed induction generator for wind turbine us...
Advanced control scheme of doubly fed induction generator for wind turbine us...
IJECEIAES
 
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMSA SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
IJNSA Journal
 
Question paper of renewable energy sources
Question paper of renewable energy sourcesQuestion paper of renewable energy sources
Question paper of renewable energy sources
mahammadsalmanmech
 
Literature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptxLiterature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptx
Dr Ramhari Poudyal
 
Embedded machine learning-based road conditions and driving behavior monitoring
Embedded machine learning-based road conditions and driving behavior monitoringEmbedded machine learning-based road conditions and driving behavior monitoring
Embedded machine learning-based road conditions and driving behavior monitoring
IJECEIAES
 
Unit-III-ELECTROCHEMICAL STORAGE DEVICES.ppt
Unit-III-ELECTROCHEMICAL STORAGE DEVICES.pptUnit-III-ELECTROCHEMICAL STORAGE DEVICES.ppt
Unit-III-ELECTROCHEMICAL STORAGE DEVICES.ppt
KrishnaveniKrishnara1
 

Recently uploaded (20)

Recycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part IIIRecycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part III
 
ISPM 15 Heat Treated Wood Stamps and why your shipping must have one
ISPM 15 Heat Treated Wood Stamps and why your shipping must have oneISPM 15 Heat Treated Wood Stamps and why your shipping must have one
ISPM 15 Heat Treated Wood Stamps and why your shipping must have one
 
Understanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine LearningUnderstanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine Learning
 
basic-wireline-operations-course-mahmoud-f-radwan.pdf
basic-wireline-operations-course-mahmoud-f-radwan.pdfbasic-wireline-operations-course-mahmoud-f-radwan.pdf
basic-wireline-operations-course-mahmoud-f-radwan.pdf
 
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
 
5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...
5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...
5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...
 
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODELDEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
 
Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...
Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...
Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...
 
IEEE Aerospace and Electronic Systems Society as a Graduate Student Member
IEEE Aerospace and Electronic Systems Society as a Graduate Student MemberIEEE Aerospace and Electronic Systems Society as a Graduate Student Member
IEEE Aerospace and Electronic Systems Society as a Graduate Student Member
 
The Python for beginners. This is an advance computer language.
The Python for beginners. This is an advance computer language.The Python for beginners. This is an advance computer language.
The Python for beginners. This is an advance computer language.
 
学校原版美国波士顿大学毕业证学历学位证书原版一模一样
学校原版美国波士顿大学毕业证学历学位证书原版一模一样学校原版美国波士顿大学毕业证学历学位证书原版一模一样
学校原版美国波士顿大学毕业证学历学位证书原版一模一样
 
Generative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of contentGenerative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of content
 
New techniques for characterising damage in rock slopes.pdf
New techniques for characterising damage in rock slopes.pdfNew techniques for characterising damage in rock slopes.pdf
New techniques for characterising damage in rock slopes.pdf
 
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
 
Advanced control scheme of doubly fed induction generator for wind turbine us...
Advanced control scheme of doubly fed induction generator for wind turbine us...Advanced control scheme of doubly fed induction generator for wind turbine us...
Advanced control scheme of doubly fed induction generator for wind turbine us...
 
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMSA SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
 
Question paper of renewable energy sources
Question paper of renewable energy sourcesQuestion paper of renewable energy sources
Question paper of renewable energy sources
 
Literature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptxLiterature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptx
 
Embedded machine learning-based road conditions and driving behavior monitoring
Embedded machine learning-based road conditions and driving behavior monitoringEmbedded machine learning-based road conditions and driving behavior monitoring
Embedded machine learning-based road conditions and driving behavior monitoring
 
Unit-III-ELECTROCHEMICAL STORAGE DEVICES.ppt
Unit-III-ELECTROCHEMICAL STORAGE DEVICES.pptUnit-III-ELECTROCHEMICAL STORAGE DEVICES.ppt
Unit-III-ELECTROCHEMICAL STORAGE DEVICES.ppt
 

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