> the closest integer, i.e. for x = array([1.1, 1.8]) > > around(x) = [1.0, 2.0] > > whereas > > x.astype(int).astype(float) = [1.0, 1.0] > (x+0.5).astype(int).astype(float) = [1.0, 2.0] i hope it helps, pau