New submission from Narek <[email protected]>:
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 <[email protected]>
<https://bugs.python.org/issue42793>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com