diff options
| author | Raymond Hettinger <python@rcn.com> | 2011-02-24 00:06:16 (GMT) |
|---|---|---|
| committer | Raymond Hettinger <python@rcn.com> | 2011-02-24 00:06:16 (GMT) |
| commit | 756fe2608d5f17731c782df193aeed70c2764679 (patch) | |
| tree | 9098a18a3d36fddc6ccc0835ebf596701e47bc60 /Doc/tutorial/inputoutput.rst | |
| parent | 659eb8445735337650c97fff41118b7a6d8b913e (diff) | |
| download | cpython-756fe2608d5f17731c782df193aeed70c2764679.zip cpython-756fe2608d5f17731c782df193aeed70c2764679.tar.gz cpython-756fe2608d5f17731c782df193aeed70c2764679.tar.bz2 | |
Issue #11304: Input/output tutorial - PI is rounded not truncated.
Diffstat (limited to 'Doc/tutorial/inputoutput.rst')
| -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)) |
