Python 2 [code language=“python”] round(3.5) => 4.0 round(4.5) => 5.0 [/code]

Python 3 [code language=“python”] round(3.5) => 4 round(4.5) => 4 [/code]

Mainly because:

  • to take away the round-up bias.
  • the result can be further divided by 2, and still an int

https://mathematica.stackexchange.com/questions/2116/why-round-to-even-integers https://en.wikipedia.org/wiki/Rounding#Round_half_to_even