| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent fc9a4d8 commit 04d8a24
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -732,7 +732,7 @@ To convert, e.g., the number 144 to the string '144', use the built-in type | |||
| 732 | 732 | constructor :func:`str`. If you want a hexadecimal or octal representation, use | |
| 733 | 733 | the built-in functions :func:`hex` or :func:`oct`. For fancy formatting, see | |
| 734 | 734 | 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'``. | ||
| 736 | 736 | ||
| 737 | 737 | ||
| 738 | 738 | How do I modify a string in place? | |
| Back | FazBrowse Home | New Git URL |
0 commit comments