[issue13889] str(float) and round(float) issues with FPU precision
report at bugs.python.org
Fri Feb 3 17:50:21 CET 2012
Mark Dickinson <dickinsm at gmail.com> added the comment:
General shape of the patch looks good.
I'd suggest using a mask of _MCW_PC | _MCW_RC instead of just _MCW_PC, so that the rounding mode is also set correctly. Probably rarely an issue in practice, but it's the same thing that we're doing on Linux.
If this is going near the maintenance branches (2.7, 3.2), we need to be very careful.
Have you had the opportunity to test the patch (e.g., run the complete Python test suite) both on 32-bit and 64-bit Windows?
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list