Problem with floating point precision

SBrunning at trisystems.co.uk SBrunning at trisystems.co.uk
Tue Aug 17 12:03:32 EDT 2004


> From: j_mckitrick at bigfoot.com [mailto:j_mckitrick at bigfoot.com]
> 
> I checked the docs, but found nothing about floating point issues.
> 
> I am working on an app that deals with currency values, and only does
> addition and subtraction (no division).  But I am starting to see
> values that should be the same failing a compare!  What is the
> workaround or correct way to compare 2 floats?  It worked fine for
> months, then suddenly starting acting odd.  I might have upgraded
> Python somewhere in between, I can't recall.

http://www.brunningonline.net/simon/blog/archives/000710.html

;-)

Cheers,
Simon B.
simon at brunningonline.net
http://www.brunningonline.net/simon/blog/ 




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