[New-bugs-announce] [issue41071] from an int to a float , why
mike stern
report at bugs.python.org
Mon Jun 22 03:01:18 EDT 2020
New submission from mike stern <rskiredj at hotmail.com>:
please I would like to know why python changes an integer result in a division to a float even in the result is even
like print(2 / 2) gives 2.0 instead of 2
or
a = 2 / 2
print(a)
----------
components: Interpreter Core
messages: 372033
nosy: rskiredj at hotmail.com
priority: normal
severity: normal
status: open
title: from an int to a float , why
type: behavior
versions: Python 3.7
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41071>
_______________________________________
More information about the New-bugs-announce
mailing list