[Numpy-discussion] should rint return int?

Neal Becker ndbecker2 at gmail.com
Mon Apr 28 13:36:43 EDT 2014

I notice rint returns float.  Shouldn't it return int?

Would be useful when float is no longer acceptable as an index.  I think
conversion to an index using rint is a common idiom.

More information about the NumPy-Discussion mailing list