Computer Arithmetic
Which correctly describes the spacing between adjacent representable floating-point values?
- AThe larger the magnitude, the wider the gap to the neighboring value
- BThe gap to the neighboring value is the same at every magnitude
- CThe larger the magnitude, the narrower the gap to the neighboring value
Show answer and explanation
Answer: A. The larger the magnitude, the wider the gap to the neighboring value
Floating point has a fixed number of significand digits and scales by the exponent, so values are evenly spaced within one exponent range, and the spacing doubles each time the exponent increases by one. In single precision, the gap near 1 is about 1.2 × 10⁻⁷ but near 100 million it is 8. Relative precision is thus about the same at all magnitudes, while absolute error grows with size. Uniform spacing everywhere is a property of fixed point.
- A. Correct. The larger the exponent, the wider the spacing.
- B. Uniform spacing everywhere describes fixed point.
- C. Spacing widens, not narrows, as magnitude grows.