How about adding rational fraction to Python?

Carl Banks pavlovevidence at gmail.com
Mon Feb 25 02:09:39 EST 2008


On Feb 25, 2:04 am, Paul Rubin <http://phr...@NOSPAM.invalid> wrote:
> Carl Banks <pavlovevide... at gmail.com> writes:
> > Try doing numerical integration sometime with rationals, and tell me
> > how that works out.  Try calculating compound interest and storing
> > results for 1000 customers every month, and compare the size of your
> > database before and after.
>
> Usually you would round to the nearest penny before storing in the
> database.

I throw it out there as a hypothetical, not as a real world example.
"This is why we don't (usually) use rationals for accounting."


Carl Banks



More information about the Python-list mailing list