]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Update output to reflect additional precision produced by the repr() of
authorFred Drake <fdrake@acm.org>
Mon, 21 May 2001 17:02:57 +0000 (17:02 +0000)
committerFred Drake <fdrake@acm.org>
Mon, 21 May 2001 17:02:57 +0000 (17:02 +0000)
floating point numbers in an interactive example.

This closes SF bug #419434.

Doc/tut/tut.tex

index c8176d212807e286dacd1d94e7396de80a4f4e85..d59a6bb646d4dbdf88fb9bc791b6ef245462c1f0 100644 (file)
@@ -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)