]> granicus.if.org Git - python/commitdiff
Issue #11304: Input/output tutorial - PI is rounded not truncated.
authorRaymond Hettinger <python@rcn.com>
Thu, 24 Feb 2011 00:00:30 +0000 (00:00 +0000)
committerRaymond Hettinger <python@rcn.com>
Thu, 24 Feb 2011 00:00:30 +0000 (00:00 +0000)
Doc/tutorial/inputoutput.rst

index 8d23cc16bb591c7f55628f99d25d6a3e30c6e5ac..0e04962a3d2b6589ef33bc2965bba04aa58171c2 100644 (file)
@@ -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)