[Python-ideas] Way to check for floating point "closeness"?

Ron Adam ron3200 at gmail.com
Fri Jan 16 01:21:55 CET 2015



On 01/15/2015 04:10 PM, Neil Girdhar wrote:
> The problem with this is that if your "actual" is say, 5, then a large
> enough "estimate" will always be close.

Actually the problem is with numbers of different signs.  The idea of 
normalising them in some way only works partially, and it doesn't fit 
mathematically.

It seems to me if the signs are different, then relatively speaking, they 
are always far apart.

Ron






More information about the Python-ideas mailing list