summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2001-05-21 17:02:57 (GMT)
committerFred Drake <fdrake@acm.org>2001-05-21 17:02:57 (GMT)
commitecf8ca887d0f036d6acc1c68a591887cc1af1e03 (patch)
tree3594df35bc7bccacbd7320924fb1e3ef322065c4
parent634f45ad4d12529e91552d28b992c061ac5ad9c7 (diff)
downloadcpython-ecf8ca887d0f036d6acc1c68a591887cc1af1e03.zip
cpython-ecf8ca887d0f036d6acc1c68a591887cc1af1e03.tar.gz
cpython-ecf8ca887d0f036d6acc1c68a591887cc1af1e03.tar.bz2
Update output to reflect additional precision produced by the repr() of
floating point numbers in an interactive example. This closes SF bug #419434.
-rw-r--r--Doc/tut/tut.tex4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/tut/tut.tex b/Doc/tut/tut.tex
index c8176d2..d59a6bb 100644
--- a/Doc/tut/tut.tex
+++ b/Doc/tut/tut.tex
@@ -2609,10 +2609,10 @@ reverse quotes (\code{``}). Some examples:
\begin{verbatim}
>>> x = 10 * 3.14
->>> y = 200*200
+>>> y = 200 * 200
>>> s = 'The value of x is ' + `x` + ', and y is ' + `y` + '...'
>>> print s
-The value of x is 31.4, and y is 40000...
+The value of x is 31.400000000000002, and y is 40000...
>>> # Reverse quotes work on other types besides numbers:
... p = [x, y]
>>> ps = repr(p)