Answer: IEEE 754 single precision (32-bit) format: 1 sign bit, 8 exponent bits (bias 127), 23 fraction bits. Value: (−1)S×1.f×2E−127.
(i) (85.125)10
1. Convert to binary:
85=10101012, 0.125=0.0012, so 85.125=1010101.0012.
2. Normalize:
1010101.0012=1.010101001×26.
3. Fields:
- S=0 (positive)
- E=6+127=133=100001012
- Fraction f=01010100100000000000000 (23 bits)
Representing real numbers in binary. Floating point representation stores a number in three fields: a sign bit, an exponent and a mantissa or significand. The IEEE 754 single precision format uses thirty two bits, with one sign bit, eight exponent bits biased by one hundred and twenty seven, and twenty three fraction bits with an implicit leading one for normalised numbers. The value is minus one to the sign times one point fraction times two to the exponent minus the bias. To convert a decimal number, write its binary form, shift the point until exactly one nonzero digit lies to its left, count the shifts to obtain the unbiased exponent, add the bias and store the remaining bits as the fraction. For eighty five point one two five the binary value is one zero one zero one zero one point zero zero one, which normalises as one point zero one zero one zero one zero zero one times two to the six, giving exponent one hundred and thirty three and a fraction field of zeros and ones. For a negative number such as minus three hundred and seven point one eight seven five the sign bit is one and the same procedure is applied to the magnitude. Double precision uses sixty four bits with eleven exponent bits and a bias of one thousand and twenty three, giving much greater range and precision. Special patterns represent zero, infinity and not a number. A good answer states the format, performs the conversion step by step, gives the final bit pattern in hexadecimal or grouped binary and explains the bias and implicit bit. Mentioning that the exponent bias allows exponents to be stored as unsigned integers simplifies comparison of floating point values is a useful conceptual point. Adding two floating point numbers requires aligning exponents, adding significands, normalising and rounding, and overflow or underflow may occur if the result lies outside the representable range.
Result: 01000010101010100100000000000000
(ii) (−307.1875)10
1. Convert magnitude to binary:
307=1001100112.
0.1875=0.00112 (0.1875×2=0.375,0.75,1.5,1.0).
So 307.1875=100110011.00112.
2. Normalize:
100110011.00112=1.001100110011×28.
3. Fields:
- S=1 (negative)
- E=8+127=135=100001112
- Fraction f=00110011001100000000000
Result: 11000011100110011001100000000000
$(-1)^S\times 1.f\times 2^{E-127}$ $(85.125)_{10}$ $85 = 1010101_2$ $0.125 = 0.001_2$ $85.125 = 1010101.001_2$ $1010101.001_2 = 1.010101001 \times 2^6$ $S=0$ $E = 6+127 = 133 = 10000101_2$ $f = 01010100100000000000000$ $\boxed{0\;10000101\;01010100100000000000000}$ $(-307.1875)_{10}$ $307 = 100110011_2$ $0.1875 = 0.0011_2$ $0.1875\times2=0.375,0.75,1.5,1.0$ $307.1875 = 100110011.0011_2$ $100110011.0011_2 = 1.001100110011 \times 2^8$ $S=1$ $E = 8+127 = 135 = 10000111_2$ $f = 00110011001100000000000$ $\boxed{1\;10000111\;00110011001100000000000}$
Tip from Examiner: Name the unit or technique, describe its operation step by step, and support the answer with a diagram, field layout or worked calculation.