diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2009-06-28 21:20:21 (GMT) |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2009-06-28 21:20:21 (GMT) |
commit | 9307839ee9e1445dd48bba6531b51738c075b746 (patch) | |
tree | 2c2cfa92965f929ed2c809f62843fcba79cf929f /Doc/tutorial | |
parent | d1cc39d3d833289e924c8ded75f6cc94dc4cc5a5 (diff) | |
download | cpython-9307839ee9e1445dd48bba6531b51738c075b746.zip cpython-9307839ee9e1445dd48bba6531b51738c075b746.tar.gz cpython-9307839ee9e1445dd48bba6531b51738c075b746.tar.bz2 |
Merged revisions 73640 via svnmerge from
svn+ssh://pythondev@www.python.org/python/branches/py3k
........
r73640 | mark.dickinson | 2009-06-28 22:19:18 +0100 (Sun, 28 Jun 2009) | 3 lines
Issue #6354 continued: reword confusing tutorial note on the (no-longer
existing) difference between str(8/5) and repr(8/5).
........
Diffstat (limited to 'Doc/tutorial')
-rw-r--r-- | Doc/tutorial/introduction.rst | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/Doc/tutorial/introduction.rst b/Doc/tutorial/introduction.rst index 1b3faae..b279f71 100644 --- a/Doc/tutorial/introduction.rst +++ b/Doc/tutorial/introduction.rst @@ -60,16 +60,9 @@ operators ``+``, ``-``, ``*`` and ``/`` work just like in most other languages 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, ``//``:: |