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

Guido van Rossum guido@cnri.reston.va.us
Thu, 6 May 1999 10:26:35 -0400 (EDT)


Update of /projects/cvsroot/python/dist/src/Objects
In directory eric:/projects/python/develop/guido/src/Objects

Modified Files:
	floatobject.c 
Log Message:
Tim Peters writes:

1. Fixes float divmod so that the quotient it returns is always an integral
value.

2. Fixes float % and float divmod so that the remainder always gets the
right sign (the current code uses a "are the signs different?" test that
doesn't work half the time <wink> when the product of the divisor and the
remainder underflows to 0).