Consider the following single precision floating point numbers and the operation.
X : (35C00000)H
Y : (34A00000)H
Z =X+Y
What is the value of ’Z’ in hexadecimal?
Correct Answer :
(35E80000)H
Solution :
The correct option is (35E80000)H.
To find the value of in hexadecimal, we first need to decode the IEEE 754 single-precision floating-point representations of and , perform the addition, and then encode the result back into single-precision hexadecimal format.
Step 1: Understand the IEEE 754 Single-Precision Format
A 32-bit single-precision floating-point number is represented as:
- Sign bit (S): 1 bit (MSB)
- Biased Exponent (E): 8 bits
- Mantissa/Fraction (F): 23 bits
The value represented is given by: (for normalized numbers).
Step 2: Decode X = (35C00000)H
Converting the hex value to binary:
Remaining zeros:
Thus, the 32-bit binary representation of X is:
Grouping into IEEE 754 fields:
- Sign bit (): (Positive number)
- Exponent (): in binary = in decimal.
- Fraction ():
So, in binary.
Step 3: Decode Y = (34A00000)H
Converting the hex value to binary:
Remaining zeros:
Thus, the 32-bit binary representation of Y is:
Grouping into IEEE 754 fields:
- Sign bit (): (Positive number)
- Exponent (): in binary = in decimal.
- Fraction ():
So, in binary.
Step 4: Perform Addition Z = X + Y
To add the two numbers, we align their exponents to the larger exponent, which is (from ).
We express with an exponent of :
Now, add the mantissas:
Step 5: Encode Z back to IEEE 754 Single-Precision Format
- Sign bit (): (positive)
- The exponent is , so the biased exponent is:
decimal = in binary.
- The mantissa fraction is the fractional part of , which is followed by zeros:
Combining the bits:
Regrouping by 4 bits to convert to hex:
This gives: (35E80000)H.
Access expert-curated educational resources and study materials—completely free.
Create, conduct, and manage professional online assessments with Mindyard. Perfect for teachers and institutes.
Copyright © 2026 Mindyard. All Rights Reserved.