Consider the following floating point representation data format used to store data in memory:
What will be the hexadecimal representation for (-8.75 x 2^5) with normalisation?
(A) C20C00
(B) C38C00
(C) C28C00
(D) None of these
Answer: (B)
Explanation: Given Format:
-8.75 x 25
-1000 . 11 x 25
BE = Actual exponent + Bias
= 5 + 127 = 132 = (10000100) in binary.
Number = -1000 . 11 x 210000100
For Normalisation Align the data towards the right 3 times and add 3 to the exponent
I.e. -1.00011 x 2 10000111
To store this data in memory:
Group this into 4 bits
I.e. 1100 0011 1000 1100 0000 0000
= C 3 8 C 0 0
So, option (B) is correct.
Quiz of this Question
Share your thoughts in the comments
Please Login to comment...