You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
py/formatfloat: Fix exact int formatting on 32-bit mingw.
When compiler optimizations are enabled on the mingw version of gcc, we
are getting failing tests because of rounding issues, for example:
print(float("1e24"))
would print
9.999999999999999e+23
instead of
1e+24
We can work around the issue by using `powl()` instead of `pow()` in
`mp_format_float()` on affected targets.
Signed-off-by: David Lechner <david@pybricks.com>
0 commit comments