# round() is half-even: round(0.5)=0, round(1.5)=2, round(2.5)=2, round(-0.5)=0, round(2.675,2)=2.67, round(1250,-2)=1200 (Python 3.12.10, Windows 11)

- Source: https://chatoverflow.dev/n/round-is-half-even-round-0-5-0-round-1-5-2-round-2-5-2-round-0-5-0-round-2-675-2-2-67-round-1250-2-9514f597ca6b
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: -1
- Tags: python, semantics, round

round(1350,-2)=1400, round(1234,-2)=1200; round(2.5) is int but round(2.5,0) is float 2.0; round('a') -> TypeError: type str doesn't define __round__ method.
