IEEE Standard 754 Floating Point Numbers | Digital Circuits - Electronics and Communication Engineering (ECE) PDF Download

IEEE 754 is a standard way to represent and work with decimal numbers (like 3.14 or -0.5) on computers. It was created in 1985 by a group called the Institute of Electrical and Electronics Engineers (IEEE) to solve problems with older, inconsistent methods that made it hard to get reliable results across different computers.

Today, it’s the most widely used system for handling these kinds of numbers on devices like PCs, Macs, and Unix-based systems. IEEE 754 represents floating-point numbers using three main parts:

  1. Sign: This just shows if the number is positive (0) or negative (1).
  2. Exponent: This part controls the size of the number (how big or small it is). To handle both large and small values, a fixed "bias" is added to the actual exponent so it can be stored properly.
  3. Mantissa: This is the core part of the number—its significant digits. In this system, it’s "normalized," meaning it’s written with a single 1 before the decimal point, followed by the rest of the digits (using only 0s and 1s).

IEEE 754 numbers are divided into two based on the above three components: single precision and double precision.

IEEE Standard 754 Floating Point Numbers | Digital Circuits - Electronics and Communication Engineering (ECE)

IEEE Standard 754 Floating Point Numbers | Digital Circuits - Electronics and Communication Engineering (ECE)

IEEE Standard 754 Floating Point Numbers | Digital Circuits - Electronics and Communication Engineering (ECE)

Example: 

85.125

85 = 1010101

0.125 = 001

85.125 = 1010101.001

       =1.010101001 x 2^6

sign = 0

1. Single precision:

biased exponent 127+6=133

133 = 10000101

Normalised mantisa = 010101001

we will add 0's to complete the 23 bits

The IEEE 754 Single precision is:

= 0 10000101 01010100100000000000000

This can be written in hexadecimal form 42AA4000

2. Double precision:

biased exponent 1023+6=1029

1029 = 10000000101

Normalised mantisa = 010101001

we will add 0's to complete the 52 bits

The IEEE 754 Double precision is:

= 0 10000000101 0101010010000000000000000000000000000000000000000000

This can be written in hexadecimal form 4055480000000000

Special Values: IEEE has reserved some values that can ambiguity.

  • Zero: Zero is a special value denoted with an exponent and mantissa of 0. -0 and +0 are distinct values, though they both are equal.
  • Denormalised: If the exponent is all zeros, but the mantissa is not then the value is a denormalized number. This means this number does not have an assumed leading one before the binary point.
  • Infinity : The values +infinity and -infinity are denoted with an exponent of all ones and a mantissa of all zeros. The sign bit distinguishes between negative infinity and positive infinity. Operations with infinite values are well defined in IEEE.
  • Not A Number (NAN) : The value NAN is used to represent a value that is an error. This is represented when exponent field is all ones with a zero sign bit or a mantissa that it not 1 followed by zeros. This is a special value that might be used to denote a variable that doesn’t yet hold a value.
EXPONENTMANTISAVALUE
00exact 0
2550Infinity
0not 0denormalised
255not 0Not a number (NAN)

Similar for Double precision (just replacing 255 by 2049), Ranges of Floating point numbers:

IEEE Standard 754 Floating Point Numbers | Digital Circuits - Electronics and Communication Engineering (ECE)

The range of positive floating point numbers can be split into normalized numbers, and denormalized numbers which use only a portion of the fractions’s precision. Since every floating-point number has a corresponding, negated value, the ranges above are symmetric around zero.

There are five distinct numerical ranges that single-precision floating-point numbers are not able to represent with the scheme presented so far:

  1. Negative numbers less than – (2 – 2-23) × 2127 (negative overflow)
  2. Negative numbers greater than – 2-149 (negative underflow)
  3. Zero
  4. Positive numbers less than 2-149 (positive underflow)
  5. Positive numbers greater than (2 – 2-23) × 2127 (positive overflow)

Overflow generally means that values have grown too large to be represented. Underflow is a less serious problem because is just denotes a loss of precision, which is guaranteed to be closely approximated by zero.

Table of the total effective range of finite IEEE floating-point numbers is shown below:

IEEE Standard 754 Floating Point Numbers | Digital Circuits - Electronics and Communication Engineering (ECE)

Special Operations: 

IEEE Standard 754 Floating Point Numbers | Digital Circuits - Electronics and Communication Engineering (ECE)

The document IEEE Standard 754 Floating Point Numbers | Digital Circuits - Electronics and Communication Engineering (ECE) is a part of the Electronics and Communication Engineering (ECE) Course Digital Circuits.
All you need of Electronics and Communication Engineering (ECE) at this link: Electronics and Communication Engineering (ECE)
Are you preparing for Electronics and Communication Engineering (ECE) Exam? Then you should check out the best video lectures, notes, free mock test series, crash course and much more provided by EduRev. You also get your detailed analysis and report cards along with 24x7 doubt solving for you to excel in Electronics and Communication Engineering (ECE) exam. So join EduRev now and revolutionise the way you learn!
Sign up for Free Download App for Free
75 videos|145 docs|70 tests

Up next

FAQs on IEEE Standard 754 Floating Point Numbers - Digital Circuits - Electronics and Communication Engineering (ECE)

1. What is IEEE Standard 754 for Floating Point Numbers?
Ans. IEEE Standard 754 is a technical standard for floating-point arithmetic established by the Institute of Electrical and Electronics Engineers (IEEE). It specifies the representation and behavior of floating-point numbers, which are used in computers to represent real numbers. This standard defines formats for single precision (32 bits) and double precision (64 bits), as well as rules for rounding, exceptions, and how arithmetic operations should be performed.
2. What are the main components of a floating-point representation according to IEEE 754?
Ans. A floating-point number according to IEEE 754 consists of three main components: the sign bit, the exponent, and the significand (or mantissa). The sign bit indicates whether the number is positive or negative. The exponent is used to scale the number, allowing for a wide range of values, and the significand contains the precision bits of the number. Together, these components allow for the representation of very large and very small numbers with a certain level of precision.
3. How does rounding work in IEEE 754 floating-point arithmetic?
Ans. Rounding in IEEE 754 floating-point arithmetic is crucial for managing precision and ensuring that results of calculations are as accurate as possible. The standard provides several rounding modes, including round to nearest (the default), round toward zero, round toward positive infinity, and round toward negative infinity. The "round to nearest" mode rounds to the nearest representable number, and in the case of ties, it rounds to the even number to minimize cumulative rounding errors.
4. What are the common exceptions defined by IEEE 754?
Ans. IEEE 754 defines several exceptions that can occur during floating-point operations, including overflow, underflow, division by zero, invalid operations (like taking the square root of a negative number), and inexact results (when a result cannot be represented exactly due to rounding). The standard specifies how these exceptions should be handled, including the use of flags to indicate when an exception has occurred.
5. Why is IEEE 754 important in computer programming and engineering?
Ans. IEEE 754 is important because it provides a consistent and reliable way to handle floating-point numbers across different computing systems and programming languages. It ensures that calculations involving real numbers are performed with predictable behavior, which is essential for scientific computations, graphics rendering, and financial applications. Adhering to this standard helps avoid errors and inconsistencies that might arise from using different representations of floating-point numbers.
75 videos|145 docs|70 tests
Download as PDF

Up next

Explore Courses for Electronics and Communication Engineering (ECE) exam
Related Searches

Sample Paper

,

pdf

,

mock tests for examination

,

ppt

,

Exam

,

Viva Questions

,

past year papers

,

MCQs

,

study material

,

video lectures

,

Extra Questions

,

IEEE Standard 754 Floating Point Numbers | Digital Circuits - Electronics and Communication Engineering (ECE)

,

Objective type Questions

,

Important questions

,

Semester Notes

,

IEEE Standard 754 Floating Point Numbers | Digital Circuits - Electronics and Communication Engineering (ECE)

,

shortcuts and tricks

,

Summary

,

Free

,

practice quizzes

,

Previous Year Questions with Solutions

,

IEEE Standard 754 Floating Point Numbers | Digital Circuits - Electronics and Communication Engineering (ECE)

;