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
Answer and explanation
Concise answer
The value may require more binary-fraction bits than are available
Why this is correct
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.
Use the concise answer above for a quick check, then reveal the full model answer and detailed explanation.
Common mistake
No common mistake is linked to this question yet.
