Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f4d2b3d commit 2bd4795Copy full SHA for 2bd4795
1 file changed
Doc/tutorial/inputoutput.rst
@@ -160,7 +160,7 @@ convert the value before it is formatted. ::
160
161
An optional ``':'`` and format specifier can follow the field name. This allows
162
greater control over how the value is formatted. The following example
163
-truncates Pi to three places after the decimal.
+rounds Pi to three places after the decimal.
164
165
>>> import math
166
>>> print 'The value of PI is approximately {0:.3f}.'.format(math.pi)
0 commit comments