Money data type

SBrunning at trisystems.co.uk SBrunning at trisystems.co.uk
Thu Sep 18 11:48:05 EDT 2003


> From:	Batista, Facundo [SMTP:FBatista at uniFON.com.ar]
> Are you trying to tell me that if I work always with float, and in the
> final step (reaching the user's eyes or check in the printer) I
> "represent" it with str (for example) or with "%.5f", I get no rounding
> errors?
 
See <http://www.brunningonline.net/simon/blog/archives/000710.html> and
<http://www.brunningonline.net/simon/blog/archives/000911.html>.

Basically, if you use floats, you'll get rounding errors.

Cheers,
Simon Brunning,
TriSystems Ltd.
--LongSig




-----------------------------------------------------------------------
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