GATE Computer ScienceModerateGATE CS (PYQ pattern)
What is the IEEE 754 single-precision bit pattern of the value nearest to −1/3 (round to nearest)?
- A. 0xBEAAAAAA
- B. 0xBF2AAAAB
- C. 0x3EAAAAAB
- D. 0xBEAAAAAB
Correct answer: D. 0xBEAAAAAB
1/3 = 1.0101…₂ × 2⁻², so the biased exponent is 125 = 01111101. The 23 fraction bits are 0101…01 (alternating, ending in 1) and the discarded tail 0101… is more than half an ulp, so it rounds up to …1011: fraction 0x2AAAAB. Sign 1, exponent 01111101 → 0xBEAAAAAB. Truncation gives 0xBEAAAAAA.
More Digital Logic questions
- Which of the following are true in IEEE 754 arithmetic (using the language operators ==, != and the usual semantics)? Let nan be a NaN and…
- An 8-bit floating-point format has 1 sign bit, 5 exponent bits (bias 15) and 2 fraction bits, with IEEE-style denormals and exponent field…
- An 8-bit floating-point format has 1 sign bit, 5 exponent bits (bias 15) and 2 fraction bits, with IEEE 754-style normalised numbers. How…
- A signed Q4.4 fixed-point format stores x as the integer round(16x) in 8 bits. Two values A = −1.4375 (integer −23) and B = 0.4375…
- The double-dabble algorithm converts the 8-bit binary number 10110111 (183) to BCD. Before each of the 8 shifts, every BCD digit that is 5…
- A CRC-8 uses the generator polynomial x⁸ + x² + x + 1 (0x107), initial register value 0 and no final XOR. What is the CRC of the single…