Working with the set of real numbers
Gregory Ewing
greg.ewing at canterbury.ac.nz
Wed Feb 12 23:09:57 CET 2014
Ben Finney wrote:
> That's why I think you need to be clear that your point isn't “computers
> don't work with real numbers”, but rather “computers work only with a
> limited subset of real numbers”.
They actually work with a subset of *rational* numbers.
All floats representable by a computer are rational.
The rationals happen to be a subset of the reals, but
that's kind of beside the point given that a float
can't represent *any* real number that isn't also
a rational.
--
Greg
More information about the Python-list
mailing list