From: Raymond Hettinger Date: Thu, 24 Feb 2011 00:00:30 +0000 (+0000) Subject: Issue #11304: Input/output tutorial - PI is rounded not truncated. X-Git-Tag: v2.7.2rc1~314 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2bd4795e94125768e38669a7973b8812bd86f9d4;p=python Issue #11304: Input/output tutorial - PI is rounded not truncated. --- diff --git a/Doc/tutorial/inputoutput.rst b/Doc/tutorial/inputoutput.rst index 8d23cc16bb..0e04962a3d 100644 --- a/Doc/tutorial/inputoutput.rst +++ b/Doc/tutorial/inputoutput.rst @@ -160,7 +160,7 @@ convert the value before it is formatted. :: 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)