[Python-checkins] CVS: python/nondist/peps pep-0240.txt,1.3,1.4

Moshe Zadka moshez@users.sourceforge.net
Wed, 21 Mar 2001 10:40:31 -0800


Update of /cvsroot/python/python/nondist/peps
In directory usw-pr-cvs1:/tmp/cvs-serv23529

Modified Files:
	pep-0240.txt 
Log Message:
Beef up the rationale a bit, as per Konrad Hinsen's request.


Index: pep-0240.txt
===================================================================
RCS file: /cvsroot/python/python/nondist/peps/pep-0240.txt,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** pep-0240.txt	2001/03/21 11:25:51	1.3
--- pep-0240.txt	2001/03/21 18:40:28	1.4
***************
*** 20,27 ****
  Rationale
  
!     Rational numbers are useful, and are much harder to use without
!     literals.  Making the "obvious" non-integer type one with more
      predictable semantics will surprise new programmers less then
!     using floating point numbers.
  
  
--- 20,31 ----
  Rationale
  
!     Rational numbers are useful for exact and unsurprising arithmetic.
!     They give the correct results people have been taught in various
!     math classes.  Making the "obvious" non-integer type one with more
      predictable semantics will surprise new programmers less then
!     using floating point numbers. As quite a few posts on c.l.py and
!     on tutor@python.org have shown, people often get bit by strange
!     semantics of floating point numbers: for example, round(0.98, 2)
!     still gives 0.97999999999999998.