• Guido van Rossum's avatar
    Tim Peters writes: · 9263e78f
    Guido van Rossum yazdı
    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).
    9263e78f
floatobject.c 15.6 KB