On Dec 5, 11:42 pm, Tim Roberts <t...@probo.com> wrote:
> Raymond Hettinger <pyt...@rcn.com> wrote:
>
> >   if not round(x - y, 6): ...
>
> That's a dangerous suggestion.  It only works if x and y happen to be
> roughly in the range of integers.

Right.  Using abs(x-y) < eps is the way to go.


Raymond
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to