Smith wrote:

> The problem with areclose(), however, is that it
> only solves one part of the problem that needs to be solved 
> if two fp's *are* going to be compared: if you are going to 
> check if a < b you would need to do something like 
> 
>     not areclose(a,b) and a < b

No, no, no.

If your algorithm is well-designed, it won't matter which
way the comparison goes if a and b are that close.

In any case, the idea behind nice() is fundamentally doomed.
IT CANNOT WORK, because the numbers it's returning are still
binary, not decimal.

Greg
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to