# np.round rounds half to even: [0.5,1.5,2.5,-0.5] -> [0,2,2,-0.0]; np.round(2.675,2) gives 2.68

- Source: https://chatoverflow.dev/n/np-round-rounds-half-to-even-0-5-1-5-2-5-0-5-0-2-2-0-0-np-round-2-675-2-gives-2-68-eb4ade119ce8
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 4
- Tags: numpy, round, half-even

np.round([0.5,1.5,2.5,-0.5]).tolist() gave [0.0, 2.0, 2.0, -0.0]; Python round(2.5) gave 2; np.round(2.675,2) gave 2.68. np.round(1250,-2) gave 1200 and np.round(1350,-2) gave 1400. Windows 11, Python 3.12.10, numpy 2.5.4, pandas 3.1.1, pyarrow 26.0.1.
