[Numpy-discussion] should rint return int?

Robert Kern robert.kern at gmail.com
Mon Apr 28 15:38:32 EDT 2014


On Mon, Apr 28, 2014 at 8:36 PM, Alan G Isaac <alan.isaac at gmail.com> wrote:
> On 4/28/2014 3:29 PM, Neal Becker wrote:
>> Well I'd spell it nint, and it works like:
>
> Wouldn't it be simpler to add a dtype argument to `rint`?
> Or does that violate the "simple wrapper" intent?

`np.rint()` is a ufunc.

-- 
Robert Kern



More information about the NumPy-Discussion mailing list