Open In App

Introduction of Floating Point Representation

1. To convert the floating point into decimal, we have 3 elements in a 32-bit floating point representation: 
    i) Sign 
    ii) Exponent 
    iii) Mantissa 

 



2. To convert the decimal into floating point, we have 3 elements in a 32-bit floating point representation: 
    i) Sign (MSB) 
    ii) Exponent (8 bits after MSB) 
    iii) Mantissa (Remaining 23 bits) 
 

 

Advantages:

Wide range of values: Floating factor illustration lets in for a extensive variety of values to be represented, along with very massive and really small numbers.

Precision: Floating factor illustration offers excessive precision, that is important for medical and engineering calculations.

Compatibility: Floating point illustration is extensively used in computer structures, making it well matched with a extensive variety of software and hardware.

Easy to use: Most programming languages offer integrated guide for floating factor illustration, making it smooth to use and control in laptop programs.

Disadvantages:

Complexity: Floating factor illustration is complex and can be tough to understand, mainly for folks that aren’t acquainted with the underlying mathematics.

Rounding errors: Floating factor illustration can result in rounding mistakes, where the real price of a number of is barely extraordinary from its illustration inside the computer.

Speed: Floating factor operations can be slower than integer operations, particularly on older or much less powerful hardware.

Limited precision: Despite its excessive precision, floating factor representation has a restrained number of sizeable digits, which could restrict its usefulness in some programs.

Related Link: 
https://www.youtube.com/watch?v=03fhijH6e2w

More questions on number representation: 
https://www.geeksforgeeks.org/number-representation-gq/ 

This article is contributed by Kriti Kushwaha

 

 

Article Tags :