Computer Arithmetic

In unsigned fixed point with the low 4 of 8 bits as the fraction, what value does the bit pattern 0011 1000 represent?

  1. A56
  2. B3.8
  3. C3.5
Show answer and explanation

Answer: C. 3.5

The upper four bits, 0011, are the integer part, 3; the lower four bits, 1000, are the fraction, where the first bit weighs 2⁻¹ = 0.5. Together that is 3 + 0.5 = 3.5. Equivalently, reading the bits as the integer 56 and dividing by 2⁴ = 16 for the four fraction bits gives 56 ÷ 16 = 3.5. 56 ignores the binary point, and 3.8 misreads binary 1000 as the decimal ".8".

  • A. 56 ignores the binary point and reads the bits as an integer.
  • B. 3.8 misreads the binary fraction as decimal.
  • C. Correct. Integer part 3 plus fraction 0.5 is 3.5.
Practice this topic Back to topic

More Computer Arithmetic questions

  1. Which three parts make up an IEEE 754 floating-point number?
  2. How are the bits of an IEEE 754 single-precision (32-bit) number allocated among sign, exponent and significand?
  3. In IEEE 754 double precision (64-bit), how many bits are the exponent and significand?
  4. In IEEE 754 single precision, if the stored exponent field is 130, what is the actual exponent (power of two)?
  5. What is the effect of not storing the leading 1 of the significand (the hidden bit) in IEEE 754 normalized numbers?