py/modmath: Implement math.isclose() for non-complex numbers.

As per PEP 485, this function appeared in for Python 3.5.  Configured via
MICROPY_PY_MATH_ISCLOSE which is disabled by default, but enabled for the
ports which already have MICROPY_PY_MATH_SPECIAL_FUNCTIONS enabled.
This commit is contained in:
stijn
2019-07-02 10:28:44 +02:00
committed by Damien George
parent 3eff81288c
commit af5c998f37
9 changed files with 123 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
False
False
False
True
True
False
False
True
True
False
False
True
True
True
True
True
False
True
False
True
True
True
True
True
False
ValueError
ValueError