[issue13889] str(float) and round(float) issues with FPU precision

Stefan Krah report at bugs.python.org
Tue Mar 13 15:48:16 CET 2012


Stefan Krah <stefan-usenet at bytereef.org> added the comment:

Stefan Krah <report at bugs.python.org> wrote:
> 
> Stefan Krah <stefan-usenet at bytereef.org> added the comment:
> 
> Mark Dickinson <report at bugs.python.org> wrote:
> > http://msdn.microsoft.com/en-us/library/e9b52ceh(v=vs.100).aspx
> > Question 1:  when doing __control87_2(new, mask, &old, NULL), does the
> > resulting value in old reflect the *new* FPU state or the old one?
> 
> The new one, but I had to test that manually (see below).

Well of course, unless both new and mask are 0, in which case it's
the existing state.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13889>
_______________________________________


More information about the Python-bugs-list mailing list