[Edu-sig] RE: Rationals

Kirby Urner urnerk@qwest.net
Fri, 11 Oct 2002 10:12:57 -0700


At 11:30 AM 10/11/2002 -0400, John Posner wrote:
> >
> >     int   / int   --> float
> >
>
>Why not this?
>
>       int   / int   --> rat
>
>After all, the definition of "rational" is "int divided by int".
>
>--
>John Posner
>jjposner@snet.net
>

This conflicts with the current redefinition of div such
that int/int --> float, meaning code currently being redone
to match 2.2 will have to be redone again.

Sometimes people *want* floats from ints, so the compromise
of making at least one int a rat, in order to get a rat,
seems worth making (to me).

Kirby