
python-checkins at python
Nov 24, 2009, 8:20 AM
Post #1 of 1
(142 views)
Permalink
|
|
r76494 - in python/branches/release31-maint: Doc/faq/design.rst
|
|
Author: mark.dickinson Date: Tue Nov 24 15:36:23 2009 New Revision: 76494 Log: Merged revisions 76491 via svnmerge from svn+ssh://pythondev [at] www/python/branches/py3k ................ r76491 | mark.dickinson | 2009-11-24 14:33:29 +0000 (Tue, 24 Nov 2009) | 9 lines Merged revisions 76489 via svnmerge from svn+ssh://pythondev [at] svn/python/trunk ........ r76489 | mark.dickinson | 2009-11-24 14:27:02 +0000 (Tue, 24 Nov 2009) | 1 line Fix some documentation examples involving the repr of a float. ........ ................ Modified: python/branches/release31-maint/ (props changed) python/branches/release31-maint/Doc/faq/design.rst Modified: python/branches/release31-maint/Doc/faq/design.rst ============================================================================== --- python/branches/release31-maint/Doc/faq/design.rst (original) +++ python/branches/release31-maint/Doc/faq/design.rst Tue Nov 24 15:36:23 2009 @@ -75,9 +75,9 @@ function prints fewer digits and this often results in the more sensible number that was probably intended:: - >>> 0.2 - 0.20000000000000001 - >>> print 0.2 + >>> 1.1 - 0.9 + 0.20000000000000007 + >>> print(1.1 - 0.9) 0.2 One of the consequences of this is that it is error-prone to compare the result _______________________________________________ Python-checkins mailing list Python-checkins [at] python http://mail.python.org/mailman/listinfo/python-checkins
|