[issue42793] Bug of round function
Narek
report at bugs.python.org
Thu Dec 31 03:10:49 EST 2020
New submission from Narek <artikcinarek2006 at gmail.com>:
The my code is folowing
for i in range(1, 5):
a = i + 0.5
b = round(a)
print(a, "rounded as =>", b)
output is
1.5 => 2
2.5 => 2
3.5 => 4
4.5 => 4
the rounding is not correct in output
----------
files: main.py
messages: 384101
nosy: Narek2018
priority: normal
severity: normal
status: open
title: Bug of round function
type: performance
versions: Python 3.9
Added file: https://bugs.python.org/file49711/main.py
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42793>
_______________________________________
More information about the Python-bugs-list
mailing list