GATE 2020 CS – Question 39
Consider three registers R1, R2, and R3 that store numbers in IEEE-754 single precision floating point format. Assume that R1 and R2 contain the values (in hexadecimal notation) 0x42200000 and 0xC1200000, respectively.
If $R3=\frac{R1}{R2}$, what is the value stored in R3?
Practise this question in The GATE Grind →
Show answer and explanation
Correct answer: (B) 0xC0800000
Explanation
0x42200000 = 40.0 and 0xC1200000 = -10.0, so R1/R2 = -4.0. In IEEE-754 single precision, -4.0 = 0xC0800000.