[issue42793] Bug of round function

2020-12-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It works as documented. https://docs.python.org/3/library/functions.html#round -- nosy: +serhiy.storchaka resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

[issue42793] Bug of round function

2020-12-31 Thread Dennis Sweeney
Dennis Sweeney added the comment: This is not a bug. See https://stackoverflow.com/a/10825998/11461120 -- nosy: +Dennis Sweeney ___ Python tracker ___

[issue42793] Bug of round function

2020-12-31 Thread Narek
New submission from Narek : 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