This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Narek2018
Recipients Narek2018
Date 2020-12-31.08:10:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1609402249.13.0.578194517068.issue42793@roundup.psfhosted.org>
In-reply-to
Content
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
History
Date User Action Args
2020-12-31 08:10:49Narek2018setrecipients: + Narek2018
2020-12-31 08:10:49Narek2018setmessageid: <1609402249.13.0.578194517068.issue42793@roundup.psfhosted.org>
2020-12-31 08:10:49Narek2018linkissue42793 messages
2020-12-31 08:10:49Narek2018create