On 2020-04-18, Dennis Lee Bieber <wlfr...@ix.netcom.com> wrote: > At the very least, one was taught to not test for equality of two > floating point values (which also implies one did not test for the > negation of equality). One either tested for difference > (greater/less than) or for a delta between values being less than > some threshold.
> while abs( v - 1.0) > 0.05: Then the trick is choosing the threshold without doing a day's worth of trial-and-error test runs. -- Grant -- https://mail.python.org/mailman/listinfo/python-list