Mercurial > cpython-lru_cache-weakref
diff Doc/tutorial/floatingpoint.rst @ 51776:d06a3ebf306f
Merged revisions 69846 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r69846 | mark.dickinson | 2009-02-21 20:27:01 +0000 (Sat, 21 Feb 2009) | 2 lines
Issue #5341: Fix a variety of spelling errors.
........
| author | Mark Dickinson <dickinsm@gmail.com> |
|---|---|
| date | Sat, 21 Feb 2009 20:59:32 +0000 |
| parents | 7a0525613644 |
| children | 8300b274fdd3 |
line wrap: on
line diff
--- a/Doc/tutorial/floatingpoint.rst Sat Feb 21 05:41:15 2009 +0000 +++ b/Doc/tutorial/floatingpoint.rst Sat Feb 21 20:59:32 2009 +0000 @@ -65,7 +65,7 @@ >>> 0.1 0.1000000000000000055511151231257827021181583404541015625 -instead! The Python prompt uses the builtin :func:`repr` function to obtain a +instead! The Python prompt uses the built-in :func:`repr` function to obtain a string version of everything it displays. For floats, ``repr(float)`` rounds the true decimal value to 17 significant digits, giving :: @@ -81,7 +81,7 @@ (although some languages may not *display* the difference by default, or in all output modes). -Python's builtin :func:`str` function produces only 12 significant digits, and +Python's built-in :func:`str` function produces only 12 significant digits, and you may wish to use that instead. It's unusual for ``eval(str(x))`` to reproduce *x*, but the output may be more pleasant to look at::
