diff options
author | Raymond Hettinger <python@rcn.com> | 2011-02-24 00:08:13 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2011-02-24 00:08:13 (GMT) |
commit | c38f025a55b56a7ddbec22479925ccef955507af (patch) | |
tree | 1e6746ed591e37483ac1ff64bc75ca4a16926c34 | |
parent | e457f0d220a711c396d22fe7912d7bd620fedbc3 (diff) | |
download | cpython-c38f025a55b56a7ddbec22479925ccef955507af.zip cpython-c38f025a55b56a7ddbec22479925ccef955507af.tar.gz cpython-c38f025a55b56a7ddbec22479925ccef955507af.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 04665f8..d94bfe0 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)) |