2 ms·
I have been teaching programming for years, and love to point out that floating-point arithmetic isn't accurate. Many experienced programmers are shocked to di
by reuven 11y ago
I have been teaching programming for years, and love to point out that floating-point arithmetic isn't accurate. Many experienced programmers are shocked to discover the problems with floats.
But I never before had a good answer for which numbers would be accurate, and which wouldn't. This explanation was crystal clear and helpful. Thanks for providing it.