From 04d8a245f162b33e6c861ba0869918d9262be63e Mon Sep 17 00:00:00 2001 From: "Eric V. Smith" Date: Mon, 14 Apr 2014 07:52:53 -0400 Subject: [PATCH] Fix faq example with division. --- Doc/faq/programming.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/faq/programming.rst b/Doc/faq/programming.rst index 9f49ba8851a..8dcaa3ad88c 100644 --- a/Doc/faq/programming.rst +++ b/Doc/faq/programming.rst @@ -732,7 +732,7 @@ To convert, e.g., the number 144 to the string '144', use the built-in type constructor :func:`str`. If you want a hexadecimal or octal representation, use the built-in functions :func:`hex` or :func:`oct`. For fancy formatting, see the :ref:`string-formatting` section, e.g. ``"{:04d}".format(144)`` yields -``'0144'`` and ``"{:.3f}".format(1/3)`` yields ``'0.333'``. +``'0144'`` and ``"{:.3f}".format(1.0/3.0)`` yields ``'0.333'``. How do I modify a string in place?