Convertion of single-precision IEEE
754 number into a floating-point
decimal value
By : NIKHIL ARORA
(www.internetnotes.in)
STEP 1:
First, put the bits in three groups.
1 10000001 10110011001100110011010
31 30 23 22 0
EXAMPLE:
1 10000001 10110011001100110011010
Bit 31 (the leftmost bit) show the sign of the
number.
EXAMPLE:
1 10000001 10110011001100110011010
Bits 23-30 (the next 8 bits) are the exponent.
EXAMPLE:
1 10000001 10110011001100110011010
Bits 0-22 (on the right) give the fraction
STEP 2:
Now, look at the sign bit.
If this bit is a 1, the number is negative.
If it is 0, the number is positive.
1 10000001 10110011001100110011010
This bit is 1, so the number is negative
STEP 3:
• Get the exponent and the correct bias.
The exponent is simply a positive binary
number.
10000001bin = 129ten
Remember that we will have to subtract a bias
from this exponent to find the power of 2.
Since this is a single-precision number, the
bias is 127.
STEP 4:
• Convert the fraction string into base ten.
This is the trickiest step. The binary string represents a fraction, so conversion is a
little different.
Binary fractions look like this:
0.1 = (1/2) = 2-1
0.01 = (1/4) = 2-2
0.001 = (1/8) = 2-3
So, for this example, we multiply each digit by the corresponding power of 2:
0.10110011001100110011010bin = 1*2-1+ 0*2-2 + 1*2-3 + 1*2-4 + 0*2-5 + 0 * 2-6 + ...
0.10110011001100110011010bin = 1/2 + 1/8 + 1/16 + ...
Note that this number is just an approximation on some decimal number. There
will most likely be some error. In this case, the fraction is
about 0.7000000476837158.
STEP 5:
• This is all the information we need. We can
put these numbers in the expression:
(-1)sign bit * (1+fraction) * 2 exponent - bias
= (-1)1 * (1.7000000476837158) * 2 129-127
= -6.8
The answer is approximately -6.8.
Convertion of single precision
THANKYOU
GATE CBSE NET KVS
PREVIOUS YEAR PAPERS SOLVED
WITH EXPLANATION ON
WWW.INTERNETNOTES.IN

More Related Content

PPTX
Floating point representation
PPTX
Quick tutorial on IEEE 754 FLOATING POINT representation
PDF
IEEE Floating Point
PPT
Integer Representation
PDF
Floating point presentation
PDF
Floating Point Numbers
PPSX
Fixed point and floating-point numbers
PPT
CBNST PPT, Floating point arithmetic,Normalization
Floating point representation
Quick tutorial on IEEE 754 FLOATING POINT representation
IEEE Floating Point
Integer Representation
Floating point presentation
Floating Point Numbers
Fixed point and floating-point numbers
CBNST PPT, Floating point arithmetic,Normalization

What's hot (20)

PPTX
06 floating point
PPT
Representation of Real Numbers
PPT
Representation Of Data
PPT
Data types
PPTX
Representation of Signed Numbers - R.D.Sivakumar
PPTX
Representation of Integers
PPT
Binary coded decimal r004
PPT
Number system and codes
PPT
binary arithmetic rules
PPTX
Digital logic mohammed salim ch2
PPT
Code conversion r006
PDF
Fixed Point Conversion
PDF
Signed Binary Numbers
PPT
Number systems r002
PPTX
Binary true ppt
PPTX
Binary arithmetic
PPT
Binary Arithmetic
PPT
1sand2scomplement r004
PPTX
Number Systems and Binary Aritmetics
PPT
1’s and 2’s complements
06 floating point
Representation of Real Numbers
Representation Of Data
Data types
Representation of Signed Numbers - R.D.Sivakumar
Representation of Integers
Binary coded decimal r004
Number system and codes
binary arithmetic rules
Digital logic mohammed salim ch2
Code conversion r006
Fixed Point Conversion
Signed Binary Numbers
Number systems r002
Binary true ppt
Binary arithmetic
Binary Arithmetic
1sand2scomplement r004
Number Systems and Binary Aritmetics
1’s and 2’s complements
Ad

Viewers also liked (20)

DOCX
critica 2
PDF
Antero Resources Company Overview - January 2016
PPTX
Actividad de victoria
PPTX
Power point copello sebastian
PPTX
Riesgos de-higiene
PPTX
Business Study Trip 2013
PPT
Mobile Website Presentation
PPTX
Реликвие вещи
DOCX
Photoshoot plan
PPTX
CinematographyNEWUPLOAD
PDF
Grupo alberto,johana,paulo,victor,roger 05 estados financieros consolidados 3...
PPT
Alan spring into success presentation
PPTX
Costume Design
PDF
Etiskafonder2002
PPTX
Medios de almacenamiento
PPTX
Trabajo final
PPTX
Definiciones
critica 2
Antero Resources Company Overview - January 2016
Actividad de victoria
Power point copello sebastian
Riesgos de-higiene
Business Study Trip 2013
Mobile Website Presentation
Реликвие вещи
Photoshoot plan
CinematographyNEWUPLOAD
Grupo alberto,johana,paulo,victor,roger 05 estados financieros consolidados 3...
Alan spring into success presentation
Costume Design
Etiskafonder2002
Medios de almacenamiento
Trabajo final
Definiciones
Ad

Similar to Convertion of single precision (20)

PPT
3.Fixed-Floating Point.ppt
DOCX
2's complement
PDF
Floating_point_representation.pdf
PPTX
Number system
PPT
Chapter 02 Data Types
PPTX
Computer Architecture Binary Arithmetic Lecture.pptx
PPTX
ELECTRICAL 411 L1 Digital Electronics.pptx
PPTX
Data representation
PPTX
Computer Arithmetic and Binary Math.pptx
PDF
digital-electronics (1)_watermark.pdfhindi
PPTX
Number_system_B.pharm_2nd_BP205T_Unit_1_Ravi.pptx
PPT
lec2_BinaryArithmetic.ppt
PDF
Binary
PDF
Ncp computer appls num sys1 pramod
PPT
chapter 3 000Number_Systems.ppt
PDF
Binary octal
PPTX
Computer Architecture and Organization- arithmetic
PPTX
digital-electronics.pptx
PDF
Data types - things you have to know!
3.Fixed-Floating Point.ppt
2's complement
Floating_point_representation.pdf
Number system
Chapter 02 Data Types
Computer Architecture Binary Arithmetic Lecture.pptx
ELECTRICAL 411 L1 Digital Electronics.pptx
Data representation
Computer Arithmetic and Binary Math.pptx
digital-electronics (1)_watermark.pdfhindi
Number_system_B.pharm_2nd_BP205T_Unit_1_Ravi.pptx
lec2_BinaryArithmetic.ppt
Binary
Ncp computer appls num sys1 pramod
chapter 3 000Number_Systems.ppt
Binary octal
Computer Architecture and Organization- arithmetic
digital-electronics.pptx
Data types - things you have to know!

Recently uploaded (20)

PPTX
B.Sc. DS Unit 2 Software Engineering.pptx
PDF
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
PDF
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 2).pdf
PDF
What if we spent less time fighting change, and more time building what’s rig...
PDF
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
PPTX
History, Philosophy and sociology of education (1).pptx
PDF
FOISHS ANNUAL IMPLEMENTATION PLAN 2025.pdf
PPTX
Chinmaya Tiranga Azadi Quiz (Class 7-8 )
PDF
International_Financial_Reporting_Standa.pdf
PPTX
Virtual and Augmented Reality in Current Scenario
PDF
Weekly quiz Compilation Jan -July 25.pdf
PPTX
TNA_Presentation-1-Final(SAVE)) (1).pptx
PDF
احياء السادس العلمي - الفصل الثالث (التكاثر) منهج متميزين/كلية بغداد/موهوبين
PPTX
A powerpoint presentation on the Revised K-10 Science Shaping Paper
PDF
Complications of Minimal Access-Surgery.pdf
PDF
AI-driven educational solutions for real-life interventions in the Philippine...
PPTX
Computer Architecture Input Output Memory.pptx
PDF
medical_surgical_nursing_10th_edition_ignatavicius_TEST_BANK_pdf.pdf
PDF
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 1)
PDF
Paper A Mock Exam 9_ Attempt review.pdf.
B.Sc. DS Unit 2 Software Engineering.pptx
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 2).pdf
What if we spent less time fighting change, and more time building what’s rig...
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
History, Philosophy and sociology of education (1).pptx
FOISHS ANNUAL IMPLEMENTATION PLAN 2025.pdf
Chinmaya Tiranga Azadi Quiz (Class 7-8 )
International_Financial_Reporting_Standa.pdf
Virtual and Augmented Reality in Current Scenario
Weekly quiz Compilation Jan -July 25.pdf
TNA_Presentation-1-Final(SAVE)) (1).pptx
احياء السادس العلمي - الفصل الثالث (التكاثر) منهج متميزين/كلية بغداد/موهوبين
A powerpoint presentation on the Revised K-10 Science Shaping Paper
Complications of Minimal Access-Surgery.pdf
AI-driven educational solutions for real-life interventions in the Philippine...
Computer Architecture Input Output Memory.pptx
medical_surgical_nursing_10th_edition_ignatavicius_TEST_BANK_pdf.pdf
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 1)
Paper A Mock Exam 9_ Attempt review.pdf.

Convertion of single precision

  • 1. Convertion of single-precision IEEE 754 number into a floating-point decimal value By : NIKHIL ARORA (www.internetnotes.in)
  • 2. STEP 1: First, put the bits in three groups. 1 10000001 10110011001100110011010 31 30 23 22 0
  • 3. EXAMPLE: 1 10000001 10110011001100110011010 Bit 31 (the leftmost bit) show the sign of the number.
  • 4. EXAMPLE: 1 10000001 10110011001100110011010 Bits 23-30 (the next 8 bits) are the exponent.
  • 5. EXAMPLE: 1 10000001 10110011001100110011010 Bits 0-22 (on the right) give the fraction
  • 6. STEP 2: Now, look at the sign bit. If this bit is a 1, the number is negative. If it is 0, the number is positive. 1 10000001 10110011001100110011010 This bit is 1, so the number is negative
  • 7. STEP 3: • Get the exponent and the correct bias. The exponent is simply a positive binary number. 10000001bin = 129ten Remember that we will have to subtract a bias from this exponent to find the power of 2. Since this is a single-precision number, the bias is 127.
  • 8. STEP 4: • Convert the fraction string into base ten. This is the trickiest step. The binary string represents a fraction, so conversion is a little different. Binary fractions look like this: 0.1 = (1/2) = 2-1 0.01 = (1/4) = 2-2 0.001 = (1/8) = 2-3 So, for this example, we multiply each digit by the corresponding power of 2: 0.10110011001100110011010bin = 1*2-1+ 0*2-2 + 1*2-3 + 1*2-4 + 0*2-5 + 0 * 2-6 + ... 0.10110011001100110011010bin = 1/2 + 1/8 + 1/16 + ... Note that this number is just an approximation on some decimal number. There will most likely be some error. In this case, the fraction is about 0.7000000476837158.
  • 9. STEP 5: • This is all the information we need. We can put these numbers in the expression: (-1)sign bit * (1+fraction) * 2 exponent - bias = (-1)1 * (1.7000000476837158) * 2 129-127 = -6.8 The answer is approximately -6.8.
  • 11. THANKYOU GATE CBSE NET KVS PREVIOUS YEAR PAPERS SOLVED WITH EXPLANATION ON WWW.INTERNETNOTES.IN