The 32-bit IEEE 754 single precision representation of a number is 0xC2710000. The number in decimal representation is ________. <i>(rounded off to two decimal places)</i>
-60.25
Step-by-Step Solution
Key idea: Decode an IEEE 754 single-precision hexadecimal representation into its decimal equivalent by extracting the sign, exponent, and mantissa.
Step 1: Convert the hex value 0xC2710000 to binary.
C = 1100, 2 = 0010, 7 = 0111, 1 = 0001
Binary: 1100 0010 0111 0001 0000 0000 0000 0000
Step 2: Extract the fields.
- Sign bit (1 bit): 1 (indicates a negative number).
- Exponent field (8 bits): 10000100.
- Mantissa field (23 bits): 11100010000000000000000.
Step 3: Decode the exponent.
Biased exponent = 10000100_2 = 132.
Actual exponent = 132 - 127 (bias) = 5.
Step 4: Decode the mantissa.
The implicit leading bit is 1, so the significand is 1.1110001_2.
Step 5: Calculate the decimal value.
Value = -1 × (1.1110001_2) × 2^5
Multiplying by 2^5 shifts the binary point 5 places to the right:
1.1110001_2 × 2^5 = 111100.01_2
Step 6: Convert binary to decimal.
Integer part: 111100_2 = 32 + 16 + 8 + 4 = 60.
Fractional part: .01_2 = 1/4 = 0.25.
Combined value = -60.25.