Mercurial > cpython-lru_cache-weakref
diff Doc/tutorial/inputoutput.rst @ 67998:de5c3a39ade7 2.7
Issue #11304: Input/output tutorial - PI is rounded not truncated.
| author | Raymond Hettinger <python@rcn.com> |
|---|---|
| date | Thu, 24 Feb 2011 00:00:30 +0000 |
| parents | 337ebb829b8c |
| children | b36cb4602e21 |
line wrap: on
line diff
--- a/Doc/tutorial/inputoutput.rst Mon Feb 21 23:59:20 2011 +0000 +++ b/Doc/tutorial/inputoutput.rst Thu Feb 24 00:00:30 2011 +0000 @@ -160,7 +160,7 @@ 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)
