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

Skip to content

Commit 04d8a24

Browse files
committed
Fix faq example with division.
1 parent fc9a4d8 commit 04d8a24

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Doc/faq/programming.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -732,7 +732,7 @@ To convert, e.g., the number 144 to the string '144', use the built-in type
732732
constructor :func:`str`. If you want a hexadecimal or octal representation, use
733733
the built-in functions :func:`hex` or :func:`oct`. For fancy formatting, see
734734
the :ref:`string-formatting` section, e.g. ``"{:04d}".format(144)`` yields
735-
``'0144'`` and ``"{:.3f}".format(1/3)`` yields ``'0.333'``.
735+
``'0144'`` and ``"{:.3f}".format(1.0/3.0)`` yields ``'0.333'``.
736736

737737

738738
How do I modify a string in place?

0 commit comments

Comments
 (0)