in reply to Re^2: Floating Point Errors
in thread Floating Point Errors
starbolin is correct. I struggled through a whole semester about nothing but floating point problems, and almost the only thing I took away from it was, "don't use floating point numbers."
There are an infinite number of real numbers between 0 and 1, but only a finite number of them can be represented the way floats are normally stored. Out between 100 and 101, there is the same infinity of real numbers, but even fewer of them can be represented.
Looking at the number line through the filter of a float is a sea of emptiness and disappointment, I tell you!
|
|---|