Python fails on math
Grigory Javadyan
grigory.javadyan at gmail.com
Tue Feb 22 08:33:03 EST 2011
More information about the Python-list mailing list
Tue Feb 22 08:33:03 EST 2011
- Previous message (by thread): Python fails on math
- Next message (by thread): Python fails on math
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
---------- Forwarded message ---------- From: Grigory Javadyan <grigory.javadyan at gmail.com> Date: Tue, Feb 22, 2011 at 5:32 PM Subject: Re: Python fails on math To: christian schulze <xcr4cx at googlemail.com> Everybody knows you can't just compare floating point values for equality with a simple ==. Instead, check that the difference between them is less than some predefined epsilon (0.0000001 for example, depends on how much precision you want).
- Previous message (by thread): Python fails on math
- Next message (by thread): Python fails on math
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list