Commit 756fe260 authored by Raymond Hettinger's avatar Raymond Hettinger

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

parent 659eb844
......@@ -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))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment