diff options
author | Damien George <damien@micropython.org> | 2025-05-20 10:34:56 +1000 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2025-05-22 17:19:03 +1000 |
commit | 49f81d5046aaeb31f90626426363ae2518dbd810 (patch) | |
tree | 637024c0ef53f88f8744d8377ad7a405a7acf311 /stm/stmperiph/stm32f4xx_gpio.h | |
parent | dc1af386a81f0238d809b2443714dc8feba5f174 (diff) | |
download | micropython-master.tar.gz micropython-master.zip |
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