-
- Downloads
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.
Showing
- ports/esp32/mpconfigport.h 1 addition, 0 deletionsports/esp32/mpconfigport.h
- ports/javascript/mpconfigport.h 1 addition, 0 deletionsports/javascript/mpconfigport.h
- ports/stm32/mpconfigport.h 1 addition, 0 deletionsports/stm32/mpconfigport.h
- ports/unix/mpconfigport.h 1 addition, 0 deletionsports/unix/mpconfigport.h
- ports/windows/mpconfigport.h 1 addition, 0 deletionsports/windows/mpconfigport.h
- py/modmath.c 39 additions, 0 deletionspy/modmath.c
- py/mpconfig.h 5 additions, 0 deletionspy/mpconfig.h
- tests/float/math_isclose.py 47 additions, 0 deletionstests/float/math_isclose.py
- tests/float/math_isclose.py.exp 27 additions, 0 deletionstests/float/math_isclose.py.exp
tests/float/math_isclose.py
0 → 100644
tests/float/math_isclose.py.exp
0 → 100644
Please register or sign in to comment