[issue19446] Integer division for negative numbers
Nitin Kumar
report at bugs.python.org
Wed Oct 30 10:25:52 CET 2013
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 <report at bugs.python.org>wrote:
>
> Georg Brandl added the comment:
>
> Hi Nitin,
>
> "a // b" is defined as the floor division operation, same as what
> "math.floor(a / b)" gives: the largest integer <= a / b.
>
> -7/2 is -3.5, the largest integer <= -3.5 is -4.
>
> ----------
> nosy: +georg.brandl
> resolution: -> invalid
> status: open -> closed
>
> _______________________________________
> Python tracker <report at bugs.python.org>
> <http://bugs.python.org/issue19446>
> _______________________________________
>
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19446>
_______________________________________
More information about the Python-bugs-list
mailing list