Closed as not planned
Description
Bug report
The round function does not round even numbers correctly. When an even number ends with .5 it gets rounded down instead of up, unlike odd numbers. This happens to negative numbers too. Providing a second argument of 0 does not change the outcome.
>>> round(0.5) # expecting 1
0
>>> round(0.5, 0) # expecting 1.0
0.0
>>> round(1.5) #correctly rounds to 2
2
>>> round(2.5) #expecting 3
2
>>> round(-2.5) #expecting -3
-2
Your environment
- CPython versions tested on: 3.10.6, x64
- Operating system and architecture: Windows 11 build 22622.590 64 bit

