[pypy-issue] Issue #2380: PyPy 3.5: Implement PEP 485 - A function for testing approximate equality (pypy/pypy)

Daniil Yarancev issues-reply at bitbucket.org
Sat Aug 27 13:11:57 EDT 2016


New issue 2380: PyPy 3.5: Implement PEP 485 - A function for testing approximate equality
https://bitbucket.org/pypy/pypy/issues/2380/pypy-35-implement-pep-485-a-function-for

Daniil Yarancev:

Example code:


```
#!python

>>> import math
>>> a = 5.0
>>> b = 4.99998
>>> math.isclose(a, b, rel_tol=1e-5)
True
>>> math.isclose(a, b, rel_tol=1e-6)
False
```





More information about the pypy-issue mailing list