diff options
author | Eric V. Smith <eric@trueblade.com> | 2014-04-14 11:52:53 (GMT) |
---|---|---|
committer | Eric V. Smith <eric@trueblade.com> | 2014-04-14 11:52:53 (GMT) |
commit | 04d8a245f162b33e6c861ba0869918d9262be63e (patch) | |
tree | 92e021dbaa66a65220647b7636473a7790510587 /Doc | |
parent | fc9a4d828ebdbd2a5e62c93943e9948320323c72 (diff) | |
download | cpython-04d8a245f162b33e6c861ba0869918d9262be63e.zip cpython-04d8a245f162b33e6c861ba0869918d9262be63e.tar.gz cpython-04d8a245f162b33e6c861ba0869918d9262be63e.tar.bz2 |
Fix faq example with division.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/faq/programming.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/faq/programming.rst b/Doc/faq/programming.rst index 9f49ba8..8dcaa3a 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? |