Machine-translated by Google. Questions are authored in English.
Top

Discussion

The value 0.5 in Q15 format is stored as the integer

  • A.16384
  • B.32768
  • C.5000
  • D.8192

Answer: A

Correct answer: 16384

The integer stored is the fraction multiplied by \( 2^{15} \): \[ 0.5 \times 32768 = 16384. \] Note that \( +1 \) itself cannot be represented, since \( 1.0 \times 32768 = 32768 \) exceeds the range of a signed 16-bit value - which is why the upper bound is just below one.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.