]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Correct two floating-point representations printed by the interpreter in
authorFred Drake <fdrake@acm.org>
Wed, 25 Apr 2001 20:58:34 +0000 (20:58 +0000)
committerFred Drake <fdrake@acm.org>
Wed, 25 Apr 2001 20:58:34 +0000 (20:58 +0000)
interactive examples.  Error noted by Dinu Gherman.

Doc/tut/tut.tex

index 14261aa9ce2a7298e389f5a7d4c7d29537946ef8..24ecc519c7e995d1c319a62977a32847bd48d089 100644 (file)
@@ -426,7 +426,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}
@@ -476,7 +476,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