No subject
Sun Nov 12 08:01:13 CET 2006
integer values. The definition of real numbers is even uglier, but it's
sufficiently broad to include both the rationals and the integers.
If you're writing a rational class, I think it's perfectly reasonable in all
cases to return a rational number, as well as to offer conversion operators
into both float and q, r representations.
I don't think it's a matter of semantics as it is a question of modeling
choice and problem decomposition.
More information about the Python-list
mailing list