On Dec 5, 11:42 pm, Tim Roberts <[email protected]> wrote: > Raymond Hettinger <[email protected]> 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
