[New-bugs-announce] [issue22444] Floor divide should return int

Alexander Belopolsky report at bugs.python.org
Fri Sep 19 18:56:55 CEST 2014


New submission from Alexander Belopolsky:

PEP 3141 defines floor division as floor(x/y) and specifies that floor() should return int type.  Builtin float type has been made part of the PEP 3141 numerical tower, but floor division of two floats still results in a float.


See also:

  * #1656 - Make math.{floor,ceil}(float) return ints per PEP 3141
  * #1623 - Implement PEP-3141 for Decimal
  * https://mail.python.org/pipermail/python-ideas/2014-September/029392.html

----------
components: Interpreter Core
messages: 227107
nosy: belopolsky
priority: normal
severity: normal
stage: needs patch
status: open
title: Floor divide should return int
type: behavior
versions: Python 3.5

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22444>
_______________________________________


More information about the New-bugs-announce mailing list