[issue19446] Integer division for negative numbers

2013-10-30 Thread Nitin Kumar
New submission from Nitin Kumar: Mathematically python is not giving correct output for integer division for negative number, e.g. : -7//2= -3 but python is giving output -4. -- components: IDLE files: Integer_division.py messages: 201715 nosy: Nitin.Kumar priority: normal severity

[issue19446] Integer division for negative numbers

2013-10-30 Thread Nitin Kumar
Changes by Nitin Kumar nitinkumar@gmail.com: Removed file: http://bugs.python.org/file32420/Integer_division.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19446

[issue19446] Integer division for negative numbers

2013-10-30 Thread Nitin Kumar
Changes by Nitin Kumar nitinkumar@gmail.com: Added file: http://bugs.python.org/file32421/Integer_division.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19446

[issue19446] Integer division for negative numbers

2013-10-30 Thread Nitin Kumar
Nitin Kumar added the comment: Hi Georg, Is there any operator for integer division in python? On Wed, Oct 30, 2013 at 1:00 PM, Georg Brandl rep...@bugs.python.orgwrote: Georg Brandl added the comment: Hi Nitin, a // b is defined as the floor division operation, same as what