diff options
author | Raymond Hettinger <python@rcn.com> | 2011-02-24 00:00:30 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2011-02-24 00:00:30 (GMT) |
commit | 2bd4795e94125768e38669a7973b8812bd86f9d4 (patch) | |
tree | 5fc6ed48e14d06505ccd03aab1b62815fac8d204 | |
parent | f4d2b3dc1091717b6dfe1e5c63a70feb2bb246d7 (diff) | |
download | cpython-2bd4795e94125768e38669a7973b8812bd86f9d4.zip cpython-2bd4795e94125768e38669a7973b8812bd86f9d4.tar.gz cpython-2bd4795e94125768e38669a7973b8812bd86f9d4.tar.bz2 |
Issue #11304: Input/output tutorial - PI is rounded not truncated.
-rw-r--r-- | Doc/tutorial/inputoutput.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/tutorial/inputoutput.rst b/Doc/tutorial/inputoutput.rst index 8d23cc1..0e04962 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) |