[Python-ideas] PEP 485: A Function for testing approximate equality (original) (raw)

Nikolaus Rath Nikolaus at rath.org
Thu Feb 5 19:46:32 CET 2015


Chris Barker <chris.barker-32lpuo7BZBA at public.gmane.org> writes:

Modulo error checking, etc, the function will return the result of::

abs(a-b) <= max( reltolerance * min(abs(a), abs(b), abstolerance )

I think you're missing a closing parenthesis here.

Best, -Nikolaus

-- GPG encrypted emails preferred. Key id: 0xD113FCAC3C4E599F Fingerprint: ED31 791B 2C5C 1613 AF38 8B8A D113 FCAC 3C4E 599F

         »Time flies like an arrow, fruit flies like a Banana.«


More information about the Python-ideas mailing list