How about adding rational fraction to Python?
Steve Holden
steve at holdenweb.com
Mon Feb 25 11:48:12 EST 2008
Grant Edwards wrote:
> On 2008-02-25, Carl Banks <pavlovevidence at gmail.com> wrote:
>
>> In other words, 3/4 in Python rightly yields a float
>
> Unless you're in the camp that believes 3/4 should yield the
> integer 0. ;)
>
>> and not a rational.
>
No, that wouldn't be rational ;-)
--
Steve Holden +1 571 484 6266 +1 800 494 3119
Holden Web LLC http://www.holdenweb.com/
More information about the Python-list
mailing list