Exam-style question
Try this first
Which statement best explains why floating-point representation can produce a rounding error?.
- A.The value may require more binary-fraction bits than are available
- B.Floating point stores only whole numbers
- C.Floating point prevents all changes to the stored value
- D.The value is always rounded to the nearest integer
Model answer
What a good answer should say
- The value may require more binary-fraction bits than are available
Explanation
Why this works
Floating-point representation still has a limited number of bits available for representing the value. If the binary fraction cannot be represented in those bits, the stored value is rounded and may be inaccurate.
Common mistake
No common mistake is linked to this question yet.
