From: Fred Drake Date: Mon, 21 May 2001 17:02:57 +0000 (+0000) Subject: Update output to reflect additional precision produced by the repr() of X-Git-Tag: v2.1.1c1~124 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ecf8ca887d0f036d6acc1c68a591887cc1af1e03;p=thirdparty%2FPython%2Fcpython.git Update output to reflect additional precision produced by the repr() of floating point numbers in an interactive example. This closes SF bug #419434. --- diff --git a/Doc/tut/tut.tex b/Doc/tut/tut.tex index c8176d212807..d59a6bb646d4 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)