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.

classification
Title: Old floating point representation in 3.1 tutorial
Type: Stage:
Components: Documentation Versions: Python 3.1, Python 3.2
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: mark.dickinson Nosy List: delroth, eric.smith, ezio.melotti, georg.brandl, mark.dickinson
Priority: normal Keywords:

Created on 2009-06-28 07:58 by delroth, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (5)
msg89768 - (view) Author: Pierre Bourdon (delroth) Date: 2009-06-28 07:58
In part 3.1.1 of the Python 3.1 tutorial, the following code sample is
obsolete :

>>> 8/5 # Fractions aren't lost when dividing integers
1.6000000000000001


In a fresh Python 3.1, 8/5 is now displayed as 1.6. The note below the
code sample should be updated too.
msg89785 - (view) Author: Mark Dickinson (mark.dickinson) * (Python committer) Date: 2009-06-28 21:03
Thanks for the report!  I've stolen this from Georg (sorry, Georg)
and fixed this and a few other similar repr-related problems in r73636 
(py3k) and r73637 (release31-maint).
msg89789 - (view) Author: Mark Dickinson (mark.dickinson) * (Python committer) Date: 2009-06-28 21:21
See also r73640 and r73641, which take into account Pierre's point
that the note below the code sample should be updated.
msg89790 - (view) Author: Ezio Melotti (ezio.melotti) * (Python committer) Date: 2009-06-28 21:26
What about http://docs.python.org/3.1/tutorial/floatingpoint.html ?
msg89791 - (view) Author: Mark Dickinson (mark.dickinson) * (Python committer) Date: 2009-06-28 21:28
Ezio:  I think Raymond updated that recently, so it should be okay.
History
Date User Action Args
2022-04-11 14:56:50adminsetgithub: 50603
2009-06-28 21:28:07mark.dickinsonsetmessages: + msg89791
2009-06-28 21:26:19ezio.melottisetnosy: + ezio.melotti
messages: + msg89790
2009-06-28 21:21:54mark.dickinsonsetmessages: + msg89789
2009-06-28 21:03:30mark.dickinsonsetstatus: open -> closed
versions: + Python 3.2
messages: + msg89785

assignee: georg.brandl -> mark.dickinson
resolution: fixed
2009-06-28 16:51:25benjamin.petersonsetnosy: + mark.dickinson, eric.smith
2009-06-28 07:58:45delrothcreate