From c38f025a55b56a7ddbec22479925ccef955507af Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Thu, 24 Feb 2011 00:08:13 +0000 Subject: [PATCH] Issue #11304: Input/output tutorial - PI is rounded not truncated. --- Doc/tutorial/inputoutput.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/tutorial/inputoutput.rst b/Doc/tutorial/inputoutput.rst index 04665f8801..d94bfe07dd 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)) -- 2.50.1