[issue38929] Float // Integer doesn't give best result.

Douglas Feather report at bugs.python.org
Wed Nov 27 07:00:58 EST 2019


New submission from Douglas Feather <python at def.me.uk>:

40.9//2 give 20.0 as a result.  I would have expected one of: 20.45 or 20.  If it is going to give an FP answer then it should do the division as FP and get the right answer.  If it is going to do an integer division then it should give the division as an integer.

----------
components: ctypes
messages: 357566
nosy: def
priority: normal
severity: normal
status: open
title: Float // Integer doesn't give best result.
versions: Python 3.7

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


More information about the Python-bugs-list mailing list