On 15/06/20 12:39 am, Sebastian M. Ernst wrote:
It's such a common problem when dealing with floating point numbers

Is it really? I've done quite a lot of work with floating
point numbers, and I've very rarely needed to compare two
of them for almost-equality. When I do, I always want to
be in control of the tolerance rather than have a default
tolerance provided for me.

I'm inclined to suspect that if you think you need
something like this, you're using an unreliable algorithm.

--
Greg
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/DUAAHLPG27HAYGOG765NP3N37HEKYQWT/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to