[Python-checkins] CVS: python/dist/src/Objects floatobject.c,2.69,2.70

Tim Peters python-dev@python.org
Fri, 15 Sep 2000 20:54:27 -0700


Update of /cvsroot/python/python/dist/src/Objects
In directory slayer.i.sourceforge.net:/tmp/cvs-serv28799/python/dist/src/Objects

Modified Files:
	floatobject.c 
Log Message:
Fixed legit gripe from c.l.py that math.fmod docs aren't confusing enough.
FRED, please check my monkey-see-monkey-do Tex fiddling!


Index: floatobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/floatobject.c,v
retrieving revision 2.69
retrieving revision 2.70
diff -C2 -r2.69 -r2.70
*** floatobject.c	2000/09/01 23:29:27	2.69
--- floatobject.c	2000/09/16 03:54:24	2.70
***************
*** 400,404 ****
  	vx = v->ob_fval;
  	mod = fmod(vx, wx);
! 	/* fmod is typically exact, so vx-mod is *mathemtically* an
  	   exact multiple of wx.  But this is fp arithmetic, and fp
  	   vx - mod is an approximation; the result is that div may
--- 400,404 ----
  	vx = v->ob_fval;
  	mod = fmod(vx, wx);
! 	/* fmod is typically exact, so vx-mod is *mathematically* an
  	   exact multiple of wx.  But this is fp arithmetic, and fp
  	   vx - mod is an approximation; the result is that div may