summaryrefslogtreecommitdiffstatshomepage
path: root/stm/stmperiph/stm32f4xx_gpio.h
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2025-05-20 10:34:56 +1000
committerDamien George <damien@micropython.org>2025-05-22 17:19:03 +1000
commit49f81d5046aaeb31f90626426363ae2518dbd810 (patch)
tree637024c0ef53f88f8744d8377ad7a405a7acf311 /stm/stmperiph/stm32f4xx_gpio.h
parentdc1af386a81f0238d809b2443714dc8feba5f174 (diff)
downloadmicropython-master.tar.gz
micropython-master.zip
tests/float/math_constants.py: Test actual e and pi constant values.HEADmaster
The existing test for `math.e` and `math.pi` constants can fail on certain targets if the functions `math.exp()` and/or `math.cos()` are not accurate enough (eg out by an LSB of float precision). For example this test currently fails on PYBD_SF6 which uses double precision floats (and that's due to the `lib/libm_dbl/exp.c` implementation not being exact). This commit changes this constant test so that it tests the actual constant value, not the evaluation of `exp()` and `cos()` functions. Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'stm/stmperiph/stm32f4xx_gpio.h')
0 files changed, 0 insertions, 0 deletions