# Floating Point Representation - Details, Types & Needs

By Priyanshu Vaish|Updated : August 26th, 2022

In computing, floating point representation (FP) is the representation that uses a formulaic representation of real numbers as an approximation to enable a trade-off between range and accuracy. As a result, the floating point representation is frequently utilized in systems with very small and extremely large real numbers that demand quick processing speeds.

The Institute of Electrical and Electronics Engineers (IEEE) produced standards for the encoding of floating point representation in 32 and 64 bits, known as IEEE 754 standards. The floating point representation has three fields:

• Sign
• Significant digits and
• Exponents

## What is Floating Point Representation?

Binary numbers can also be expressed in exponential form. The representation of binary integers in exponential form is known as floating point representation. The floating point representation divides the number into two parts: the left side is a signed, fixed-point integer known as a mantissa, and the right side is the exponent.

Floating point representation can also have a sign, with 0 denoting a positive value and 1 denoting a negative value. The IEEE (Institute of Electrical and Electronics Engineers) has developed a floating point representation standard.

## Floating Point Representation Types

The IEEE specifies two types of formats in floating point representation that are:

• Single precision(32-bit)
• Double precision(64-bit)

### Single Precision Floating Point Representation

The single-precision floating-point representation (also known as FP32 or float32) is a computer number format that uses a floating radix point to express a wide dynamic range of numeric values. The IEEE 754 standard defines a binary32 as having the following characteristics:

• 1 bit for sign
• 8-bit for exponent
• The precision of significand: 24 bits (23 explicitly stored)

The structure of single precision floating point representation is as follows: Exponent calculation

In the IEEE 754 standard, the single-precision floating-point representation, the exponent is encoded using an offset-binary encoding, with the zero offset being 127; this is known as exponent bias.

Emin = 01H – 7FH = −126

Emax = FEH – 7FH = 127

Exponent bias = 7FH = 127

Thus, the offset of 127 must be removed from the recorded exponent to obtain the real exponent as described by the offset-binary representation.

### Double Precision Floating Point Representation

The double precision floating point representation (also known as FP64 or float64) is a computer number format that uses a floating radix point to express a wide dynamic range of numeric values. The IEEE 754 standard defines a binary64 as having the following characteristics:

• 1 bit for sign
• 11-bit for exponent
• The precision of significand: 53 bits (52 explicitly stored)

The structure of double precision floating point representation is as follows: ## Need for Floating Point Representation

A fixed point representation will not be sufficient when representing extremely small or extremely big numbers. The precision will be lost. As a result, you must examine floating point representations, in which the binary point is believed to be floating.

Consider the decimal value 12.34 * 107, which may alternatively be written as 0.1234 * 109, where 0.1234 is the fixed-point mantissa. The other portion is the exponent value, and it shows that the actual position of the binary point in the fraction is 9 places to the right (left) of the specified binary point.

A floating point representation is so named because the binary point can be shifted to any place and the exponent value can be modified accordingly. By convention, you should use a normalized form, with the floating point to the right of the first nonzero (significant) digit.

 Important Topics for Gate Exam Data Hazard Degree of Freedom Delta Wye Transformation Difference Between Synchronous And Asynchronous Counter Direct Stress Ductile Material Elastic Constants Entity Set in DBMS Equilibrium of Rigid Body Factor of Safety

write a comment

## FAQs on floating point representation

• The floating point representation does not set aside a certain number of bits for the integer or fractional parts. Instead, it saves a specific number of bits for the number (called the mantissa or significand) and a particular number of bits to indicate where the decimal place is inside that number (called the exponent).

• A fixed point representation will not be sufficient when representing extremely small or extremely big numbers. The precision will be lost. As a result, you must examine floating-point representations, in which the binary point is believed to be floating.

• The floating point representation has three fields:

• Sign
• Significant digits and
• Exponents
• IEEE floating-point format with single precision. IEEE single-precision floating-point standard representation needs a total of 32 bits for each word, comprising 23 fraction bits F, 8 exponent bits E, and 1 sign bit S. F is the mantissa in the 2's complement positive binary fraction represented by bits 0 through 22.

• The most basic difference between single- and double-precision floating point representation computing is the number of bits used to represent the floating-point integer. The floating-point number is represented in 32 bits for single precision. The floating-point number is represented in 64 bits for double precision.

### GATE & PSU CS

Computer ScienceGATEGATE CSENIELITOther ExamsQuick LinksMock Test GradeStack Learning Pvt. Ltd.Windsor IT Park, Tower - A, 2nd Floor, Sector 125, Noida, Uttar Pradesh 201303 help@byjusexamprep.com