Python doesn't know how to do math?

Simon Brunning SBrunning at trisystems.co.uk
Fri Apr 26 06:11:16 EDT 2002


> From:	Chris Spencer [SMTP:clspence at one.net]
> 	I want to thank everyone who responded to this.  I read the floating
> point tutorial and now understand the issues.  I wasn't really looking for
> that
> much precision anyways (2 decimal places was all I really need).  So now
> that I
> know, I shant ask again.
 
Hmmm. It sounds to me like you don't want to use floats at all. Have a look
at <http://starship.python.net/crew/aahz/FixedPoint.py> - you might find it
more useful for holding stuff like currency values.

Cheers,
Simon Brunning
TriSystems Ltd.
sbrunning at trisystems.co.uk




-----------------------------------------------------------------------
The information in this email is confidential and may be legally privileged.
It is intended solely for the addressee. Access to this email by anyone else
is unauthorised. If you are not the intended recipient, any disclosure,
copying, distribution, or any action taken or omitted to be taken in
reliance on it, is prohibited and may be unlawful. TriSystems Ltd. cannot
accept liability for statements made which are clearly the senders own.





More information about the Python-list mailing list