Bugs item #1197806, was opened at 2005-05-08 20:35
Message generated for change (Comment added) made by mwh
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1197806&group_id=5470

Category: Python Interpreter Core
Group: Python 2.4
>Status: Closed
>Resolution: Invalid
Priority: 5
Submitted By: Jonathan (nathanoj)
Assigned to: Nobody/Anonymous (nobody)
Summary: % gives wrong results

Initial Comment:
when playing with % i got 5 % -3 = -1 
This occured on the windows python 2.3 build,
and a python 2.4.1 build on a linux pc (with gcc 3.3.5)

----------------------------------------------------------------------

>Comment By: Michael Hudson (mwh)
Date: 2005-05-08 21:08

Message:
Logged In: YES 
user_id=6656

Why do you think this is a bug?  On http://docs.python.org/ref/binary.html 
we find:

The modulo operator always yields a result with the same sign as its 
second operand (or zero); the absolute value of the result is strictly smaller 
than the absolute value of the second operand.

Closing.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1197806&group_id=5470
_______________________________________________
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to