This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author William McIlhagga
Recipients William McIlhagga, mark.dickinson
Date 2016-11-16.23:23:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <CAA=+jG-kU6M_GnisRsMHqJJtk-expFNqEgSNM8tMOa+ROgGXFg@mail.gmail.com>
In-reply-to <1479335432.41.0.585172763819.issue28717@psf.upfronthosting.co.za>
Content
Thanks, maybe I should get off my ass and contribute to the documentation
then ...

On 16 November 2016 at 22:30, Mark Dickinson <report@bugs.python.org> wrote:

>
> Mark Dickinson added the comment:
>
> > Is this behaviour documented? Or are you just expected to know what C
> does?
>
> Indeed, it's not as well documented as it should be. I think that's partly
> for historical reasons: before Python 2.7, Python's % formatting
> more-or-less delegated directly to the underlying C sprintf library
> function, and so just inherited whatever the behaviour of that function
> happened to be on the target operating system. Because the C standard
> doesn't make guarantees about the behaviour of %f for ties, Python wasn't
> in a position to do so either.
>
> But that excuse doesn't work any more with Python 2.7 and Python 3.x,
> where on most (but still not all) platforms, we're consistently rounding
> results using the usual round-ties-to-even rounding mode.
>
> There's a currently open issue (#17259) to improve the documentation here.
>
> ----------
>
> _______________________________________
> Python tracker <report@bugs.python.org>
> <http://bugs.python.org/issue28717>
> _______________________________________
>

-- 
Dr. William McIlhagga
Bradford School of Optometry & Vision Science,
Bradford University
Great Horton Road
Bradford BD7 1DP
UK

Room G23, Richmond tel. (44) (1274) 235957
History
Date User Action Args
2016-11-16 23:23:39William McIlhaggasetrecipients: + William McIlhagga, mark.dickinson
2016-11-16 23:23:39William McIlhaggalinkissue28717 messages
2016-11-16 23:23:39William McIlhaggacreate