summaryrefslogtreecommitdiffstats
path: root/Doc/tut
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2001-04-25 21:03:20 (GMT)
committerFred Drake <fdrake@acm.org>2001-04-25 21:03:20 (GMT)
commit9188b2194a11605d4da0386cac2abd48ab375639 (patch)
tree5004d87f2cdb88b894dce54aaccd72e38e2d3131 /Doc/tut
parent8f42e2b1fa101dc8a3e3ab371823ff5601b8a58b (diff)
downloadcpython-9188b2194a11605d4da0386cac2abd48ab375639.zip
cpython-9188b2194a11605d4da0386cac2abd48ab375639.tar.gz
cpython-9188b2194a11605d4da0386cac2abd48ab375639.tar.bz2
Correct two floating-point representations printed by the interpreter in
interactive examples. Error noted by Dinu Gherman.
Diffstat (limited to 'Doc/tut')
-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 69ff7ed..c8176d2 100644
--- a/Doc/tut/tut.tex
+++ b/Doc/tut/tut.tex
@@ -427,7 +427,7 @@ operands convert the integer operand to floating point:
\begin{verbatim}
>>> 4 * 2.5 / 3.3
-3.0303030303
+3.0303030303030303
>>> 7.0 / 2
3.5
\end{verbatim}
@@ -477,7 +477,7 @@ TypeError: can't convert complex to float; use e.g. abs(z)
>>> a.real
1.5
>>> abs(a)
-1.58113883008
+1.5811388300841898
\end{verbatim}
In interactive mode, the last printed expression is assigned to the