FLOATING POINT REPRESENTATION

An Introduction to IEE 754 floating point number representation:
IEEE 754 Floating point is the most common representation used to store real numbers in a computer.
Index
1. What are floating point numbers
2. How to represent a floating point number.
a. Single and Double precisions
3.Data ranges

What are floating point number:

The term ‘floating point’ refers to the decimal point (or) binary point in a real number.
The decimal point placed in between group of digits is called floating point numbers.

Ex: 28.36, 0.00124

Floating point number representation IEEE 754 standard:

Floating point number contains three components
1. Sign bit - Represents the sign of floating point number.
2. Exponent - Represents the magnitude of the exponent (explained at later part) (Ex: 1.086 * 10^6)
3. Mantissa - Represents the precision bits of the number. (Ex: 1.086 * 10^6)

Single precision floating point representation (32-bit):




Fig 1: SP floating point representation

S = 1bit; E = 8 bit - Min = 126, Max = 127, Bias = 127; M = 23bits.



31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0

S ------ E-8bit------ -----------------------------M-23bit-------------------

Double precision floating point representation (64-bit):

Fig 2: DP floating point representation

S = 1bit; E = 12 bit - Min = 1022, Max = 1023, Bias = 1023; M = 23bits.


Normalized floating point representation:

Components of a floating point representation




In general to maximize the representable numbers, FP numbers are typically stored in ‘normalized’ form. This puts a radix point after a non-zero digit. Fig 1 & 2 are normalized representation of floating point (FP) numbers.

In order to represent in more optimized way number is represented with base 2, since only non-zero value possible is 1, this is implicitly stored.



Demoralized floating point representation:


If the exponent is all zeros and the fraction part is non-zero’s, then the value is ‘denormalized’ number. Which does not have any assumed leading but as 1 before decimal point


Ranges of floating point numbers:




Introduction to fp representation - part II
Give your comments/Suggestions on this article

Next Cont..


4 comments:

  1. I really appreciate information shared above. It’s of great help. If someone want to learn Online (Virtual) instructor lead live training in Machine Learning , kindly contact us http://www.maxmunus.com/contact
    MaxMunus Offer World Class Virtual Instructor led training on TECHNOLOGY. We have industry expert trainer. We provide Training Material and Software Support. MaxMunus has successfully conducted 100000+ trainings in India, USA, UK, Australlia, Switzerland, Qatar, Saudi Arabia, Bangladesh, Bahrain and UAE etc.
    For Demo Contact us.
    Sangita Mohanty
    MaxMunus
    E-mail: sangita@maxmunus.com
    Skype id: training_maxmunus
    Ph:(0) 9738075708 / 080 - 41103383
    http://www.maxmunus.com/

    ReplyDelete
  2. Publication and printing software

    Desktop publishing software can turn copy and media files into publishable layouts, for things such as newspapers, magazines, brochures, flyers, and books. Completed layouts can be uploaded onto a website or exported and printed onto paper or similar materials. Users can use prepackaged templates or build pages from scratch, and edit individual pages to meet the needs of each projects. Desktop publishing tools may integrate with drawing or photo editing tools, and are commonly used by the editorial and layout staff within an organization. Completed layouts can be uploaded onto a website or exported and printed onto paper or similar materials.

    ReplyDelete
  3. Voip software

    What is an example of a VoIP? Many apps for smartphones now use VoIP to make calls, some examples are Whatsapp, Google Phone, Google Group Chat, FaceBook Video and Voice Chat and Skype. all examples ofhosted VoIP service: you install the software and the client provides the infrastructure.

    ReplyDelete
  4. emberjs development companies

    Ember.js is a freely available JavaScript framework that helps build great single-page applications and provides everything needed to build a rich UI that can properly work on any device. Created in 2011, this framework is continuously gaining recognition among beginning and professional developers.
    Ember.js involves all valuable features of previously created frameworks and offers a wide range of options that considerably simplify and speed up the development process.
    Consequently, a competent Ember.js development firm can become your reliable partner that can optimize your work, fill in the gap in your in-house team, and help your company achieve all business goals.

    ReplyDelete

Related Posts

Twitter Updates

Random Posts

share this post
Bookmark and Share
| More
Share/Save/Bookmark Share