[New-bugs-announce] [issue42788] Issue with Python’s Floor Division

yao_way report at bugs.python.org
Wed Dec 30 12:31:26 EST 2020


New submission from yao_way <yao_way at yahoo.com>:

There might be an issue with Python’s floor division:
Experienced Behavior: >>> (1 / 1) // 1 --> 1.0; >>> (0 / 1) // 1 --> 0.0
Expected Behavior: >>> (1 / 1) // 1 --> 1; >>> (0 / 1) // 1 --> 0

----------
components: Interpreter Core
messages: 384073
nosy: yao_way
priority: normal
severity: normal
status: open
title: Issue with Python’s Floor Division
type: behavior
versions: Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42788>
_______________________________________


More information about the New-bugs-announce mailing list