From: Raymond Hettinger Date: Thu, 24 Feb 2011 00:06:16 +0000 (+0000) Subject: Issue #11304: Input/output tutorial - PI is rounded not truncated. X-Git-Tag: v3.2.1b1~381 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=756fe2608d5f17731c782df193aeed70c2764679;p=thirdparty%2FPython%2Fcpython.git Issue #11304: Input/output tutorial - PI is rounded not truncated. --- diff --git a/Doc/tutorial/inputoutput.rst b/Doc/tutorial/inputoutput.rst index 04665f88017e..d94bfe07dd88 100644 --- a/Doc/tutorial/inputoutput.rst +++ b/Doc/tutorial/inputoutput.rst @@ -163,7 +163,7 @@ Positional and keyword arguments can be arbitrarily combined:: An optional ``':'`` and format specifier can follow the field name. This allows greater control over how the value is formatted. The following example -truncates Pi to three places after the decimal. +rounds Pi to three places after the decimal. >>> import math >>> print('The value of PI is approximately {0:.3f}.'.format(math.pi))