Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 756fe26

Browse files
committed
Issue #11304: Input/output tutorial - PI is rounded not truncated.
1 parent 659eb84 commit 756fe26

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Doc/tutorial/inputoutput.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ Positional and keyword arguments can be arbitrarily combined::
163163

164164
An optional ``':'`` and format specifier can follow the field name. This allows
165165
greater control over how the value is formatted. The following example
166-
truncates Pi to three places after the decimal.
166+
rounds Pi to three places after the decimal.
167167

168168
>>> import math
169169
>>> print('The value of PI is approximately {0:.3f}.'.format(math.pi))

0 commit comments

Comments
 (0)