|
From: Pau G. <pau...@gm...> - 2006-02-21 16:01:16
|
> the closest integer, i.e. for x =3D array([1.1, 1.8]) > > around(x) =3D [1.0, 2.0] > > whereas > > x.astype(int).astype(float) =3D [1.0, 1.0] > (x+0.5).astype(int).astype(float) =3D [1.0, 2.0] i hope it helps, pau |