[Tutor] Re: integers and float

Danny Yoo dyoo@hkn.eecs.berkeley.edu
Sat, 20 Jul 2002 20:39:12 -0700 (PDT)


On Sat, 20 Jul 2002, Derrick 'dman' Hudson wrote:

> On Fri, Jul 19, 2002 at 09:14:46AM -0700, MIG wrote:
> | I've got a question with float and $.
>
> No. No. No. No. No.
>
> Never never ever use floating point for handling money.  Always use
> integers or fixed point.

By the way, there's a module for representing money:

    http://www.post1.com/home/ngps/fin/

which looks pretty nice.

For people who are interested in financial calculations, the
python-finance group may help:

    http://groups.yahoo.com/group/python-finance/

I don't know how active the group is these days, especially with spammers
disrupting the discussion there.  Still, it might be useful.


Best of wishes to you!