How about adding rational fraction to Python?

casevh casevh at gmail.com
Sun Feb 24 16:22:00 EST 2008


>
> Out of curiosity, of what use is denominator limits?
>
> The problems where I've had to use rationals have
> never afforded me such luxury, so I don't see what
> your point is

In Donald Knuth's The Art of Computer Programming, he described
floating slash arithmetic where the total number of bits by the
numerator and denominator was bounded. IIRC, a use case was matrix
inversion.

casevh



More information about the Python-list mailing list