Last Updated : 22 Nov, 2018

Consider the following floating point representation data format used to store data in memory:
\"\"
What will be the hexadecimal representation for ( 240.6640625 ) with denormalization?
(A) 3FF85500
(B) 43F85500
(C) 4FF85500
(D) None of these.


Answer: (B)

Explanation: Given Format:
\"\"

Actual Number = 240.6640625 = 11110000.1010101 x 2^0.
BE = Actual exponent + Bias
BE = 0 + 127 = 127.
BE = 01111111
Number in floating point format = 11110000.1010101 x 2^01111111
For denormalization align it right 8 times and add 8 in the exponent.
I.e. 0.111100001010101 x 2^10000111
To store this data in memory:
\"\"

Group it pair of 4
I.e. 0100 0011 1111 1000 0101 0101 000 0000
= 4 3 F 8 5 5 0 0
So, option (B) is correct.


Quiz of this Question


Share your thoughts in the comments