[issue14245] float rounding examples in FAQ are outdated

2012-05-13 Thread Mark Dickinson
Mark Dickinson added the comment: Thanks for all the feedback. I made another round of minor edits to the latest version and committed the result. -- resolution: -> fixed status: open -> closed ___ Python tracker

[issue14245] float rounding examples in FAQ are outdated

2012-05-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2b2a7861255d by Mark Dickinson in branch '3.2': Issue #14245: Improve floating-point entry in FAQ. Thanks Zbyszek Jędrzejewski-Szmek for some of the wording. http://hg.python.org/cpython/rev/2b2a7861255d New changeset a79b07e05d0d by Mark Dickins

[issue14245] float rounding examples in FAQ are outdated

2012-05-10 Thread Zbyszek Szmek
Zbyszek Szmek added the comment: Done now. Thanks, Zbyszek -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue14245] float rounding examples in FAQ are outdated

2012-05-10 Thread Mark Dickinson
Mark Dickinson added the comment: Zbyszek, have you signed a contributor agreement form? [1] If not, please could you do so? Then I can apply this doc contribution. Thanks! [1] http://www.python.org/psf/contrib/ -- ___ Python tracker

[issue14245] float rounding examples in FAQ are outdated

2012-05-09 Thread Mark Dickinson
Changes by Mark Dickinson : -- assignee: docs@python -> mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue14245] float rounding examples in FAQ are outdated

2012-03-17 Thread Zbyszek Szmek
Zbyszek Szmek added the comment: Both appear to be commonly used. Both sound OK to me. -- ___ Python tracker ___ ___ Python-bugs-list

[issue14245] float rounding examples in FAQ are outdated

2012-03-16 Thread Mark Dickinson
Mark Dickinson added the comment: Fine by me. Language nitpick: "approximation to" sounds a bit better to my ears than "approximation of" -- ___ Python tracker ___ __

[issue14245] float rounding examples in FAQ are outdated

2012-03-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: The last version in the message above looks good to me. Ready to markup and apply? -- keywords: +patch nosy: +terry.reedy stage: -> patch review ___ Python tracker _

[issue14245] float rounding examples in FAQ are outdated

2012-03-10 Thread Zbyszek Szmek
Zbyszek Szmek added the comment: On 03/10/2012 07:52 PM, Martin v. Löwis wrote: >> - explain ``1.2`` example a bit more > > +1 for giving the binary representation; -1 for rounding > the decimal version of it. Oh, 1.1999555910790149937383830547332763671875 is exactly equal to 1.001

[issue14245] float rounding examples in FAQ are outdated

2012-03-10 Thread Martin v . Löwis
Martin v. Löwis added the comment: > - explain ``1.2`` example a bit more +1 for giving the binary representation; -1 for rounding the decimal version of it. -- ___ Python tracker

[issue14245] float rounding examples in FAQ are outdated

2012-03-10 Thread Zbyszek Szmek
Zbyszek Szmek added the comment: Proposed rewrite (building on Mark's version): - mention C doubles - explain ``1.2`` example a bit more """ Why are floating-point calculations inaccurate? --- Users are often surprised by results like this:: >>>

[issue14245] float rounding examples in FAQ are outdated

2012-03-10 Thread Martin v . Löwis
Martin v. Löwis added the comment: > I think it would be useful to mention explicitly that Python simply uses > the native floating-point implementation in hardware and thus behaves > very similarly to other languages which do this, for instance C or Java. > This should clear up a lot of the beh

[issue14245] float rounding examples in FAQ are outdated

2012-03-10 Thread Mark Dickinson
Mark Dickinson added the comment: > I think it would be useful to mention explicitly that Python simply uses > the native floating-point implementation in hardware and thus behaves > very similarly to other languages which do this, for instance C or Java. Agreed that it's useful to say somet

[issue14245] float rounding examples in FAQ are outdated

2012-03-10 Thread Zbyszek Szmek
Zbyszek Szmek added the comment: [part mangled by the tracker] "> 1.1999555910790149937383830547332763671875 "> "> which is accurate to around 16 decimal digits.) It is easy to count, that exactly 17 digits are accurate. I have to admit, that I'm completely lost here --- why w

[issue14245] float rounding examples in FAQ are outdated

2012-03-10 Thread Zbyszek Szmek
Zbyszek Szmek added the comment: On 03/10/2012 12:26 PM, Mark Dickinson wrote: > > Mark Dickinson added the comment: > > Proposed rewrite: Hi, thanks for the quick reply. If we were to rewrite the whole entry, some more changes could be done: I think it would be useful to mention explicitly

[issue14245] float rounding examples in FAQ are outdated

2012-03-10 Thread Martin v . Löwis
Martin v. Löwis added the comment: +1 -- nosy: +loewis ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue14245] float rounding examples in FAQ are outdated

2012-03-10 Thread Mark Dickinson
Mark Dickinson added the comment: Proposed rewrite: Why are floating point calculations inaccurate? --- Users are often surprised by results like this:: >>> 1.2 - 1.0 0.16 and think it is a bug in Python. It's not. This h

[issue14245] float rounding examples in FAQ are outdated

2012-03-10 Thread Mark Dickinson
Mark Dickinson added the comment: Agreed. Do you have a suggested rewrite? That faq entry could be improved significantly in many ways; the tutorial material is much better. I'm wondering whether it would be better to cut down the FAQ to much something much briefer, and leave the link to t

[issue14245] float rounding examples in FAQ are outdated

2012-03-10 Thread Zbyszek Szmek
New submission from Zbyszek Szmek : http://docs.python.org/dev/faq/design.html#why-are-floating-point-calculations-so-inaccurate This whole paragraph is wrong since #9337 (Make float.__str__ behave identically to float.__repr__). """ The str() function prints fewer digits and this often results