diff options
Diffstat (limited to 'Doc/tutorial/floatingpoint.rst')
-rw-r--r-- | Doc/tutorial/floatingpoint.rst | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Doc/tutorial/floatingpoint.rst b/Doc/tutorial/floatingpoint.rst index 2eaab12..150e8fb 100644 --- a/Doc/tutorial/floatingpoint.rst +++ b/Doc/tutorial/floatingpoint.rst @@ -132,9 +132,8 @@ that every float operation can suffer a new rounding error. While pathological cases do exist, for most casual use of floating-point arithmetic you'll see the result you expect in the end if you simply round the display of your final results to the number of decimal digits you expect. -:func:`str` usually suffices, and for finer control see the discussion of -Python's ``%`` format operator: the ``%g``, ``%f`` and ``%e`` format codes -supply flexible and easy ways to round float results for display. +:func:`str` usually suffices, and for finer control see the :meth:`str.format` +method's format specifiers in :ref:`formatstrings`. If you are a heavy user of floating point operations you should take a look at the Numerical Python package and many other packages for mathematical and |