[Python-checkins] r88538 - python/branches/py3k/Doc/tutorial/inputoutput.rst

raymond.hettinger python-checkins at python.org
Thu Feb 24 01:08:13 CET 2011


Author: raymond.hettinger
Date: Thu Feb 24 01:08:13 2011
New Revision: 88538

Log:
Issue #11304: Input/output tutorial - PI is rounded not truncated.

Modified:
   python/branches/py3k/Doc/tutorial/inputoutput.rst

Modified: python/branches/py3k/Doc/tutorial/inputoutput.rst
==============================================================================
--- python/branches/py3k/Doc/tutorial/inputoutput.rst	(original)
+++ python/branches/py3k/Doc/tutorial/inputoutput.rst	Thu Feb 24 01:08:13 2011
@@ -163,7 +163,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))


More information about the Python-checkins mailing list