A 32-bit float carries the bits 0 10000001 01000000000000000000000. The first bit is the sign, the next eight bits are the exponent field, and the last twenty-three bits are the fraction. Decode the word and give its value as a decimal.
Worked solution
The sign bit is 0, so the number is positive. The exponent field is and subtracting the bias gives , so the scale is . The fraction reads as an integer and divides by : Adding the hidden leading one gives . The value is therefore Encoding 5.0 again returns the same word, which is the check that the decode lost nothing. Section 6.1's formula is the whole method: subtract the bias, build a number between one and two from the fraction, multiply.