[Python-checkins] r73640 - python/branches/py3k/Doc/tutorial/introduction.rst
mark.dickinson
python-checkins at python.org
Sun Jun 28 23:19:18 CEST 2009
Author: mark.dickinson
Date: Sun Jun 28 23:19:18 2009
New Revision: 73640
Log:
Issue #6354 continued: reword confusing tutorial note on the (no-longer
existing) difference between str(8/5) and repr(8/5).
Modified:
python/branches/py3k/Doc/tutorial/introduction.rst
Modified: python/branches/py3k/Doc/tutorial/introduction.rst
==============================================================================
--- python/branches/py3k/Doc/tutorial/introduction.rst (original)
+++ python/branches/py3k/Doc/tutorial/introduction.rst Sun Jun 28 23:19:18 2009
@@ -60,16 +60,9 @@
Note: You might not see exactly the same result; floating point results can
differ from one machine to another. We will say more later about controlling
-the appearance of floating point output; what we see here is the most
-informative display but not as easy to read as we would get with::
-
- >>> print(8/5)
- 1.6
-
-For clarity in this tutorial we will show the simpler floating point output
-unless we are specifically discussing output formatting, and explain later
-why these two ways of displaying floating point data come to be different.
-See :ref:`tut-fp-issues` for a full discussion.
+the appearance of floating point output. See also :ref:`tut-fp-issues` for a
+full discussion of some of the subtleties of floating point numbers and their
+representations.
To do integer division and get an integer result,
discarding any fractional result, there is another operator, ``//``::
More information about the Python-checkins
mailing list