How about adding rational fraction to Python?
Mel
mwilson at the-wire.com
Sun Feb 24 19:09:44 EST 2008
Mensanator wrote:
> On Feb 24, 1:09�pm, Lie <Lie.1... at gmail.com> wrote:
>> I decided to keep the num/den limit low (10) because higher values
>> might obscure the fact that it do have limits. [ ... ]
>
> 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 calculations dealing only with selected units of measure: dollars
and cents, pounds, ounces and tons, teaspoons, gallons, beer bottles
28 to a case, then the denominators would settle out pretty quickly.
In general mathematics, not.
I think that might be the point.
Mel.
More information about the Python-list
mailing list