[Numpy-discussion] Floor divison on int returns float

T J tjhnson at gmail.com
Mon Apr 4 15:23:06 EDT 2016


I'm on NumPy 1.10.4 (mkl).

>>> np.uint(3) // 2   # 1.0
>>> 3 // 2   # 1

Is this behavior expected? It's certainly not desired from my perspective.
If this is not a bug, could someone explain the rationale to me.

Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20160404/4fabd303/attachment.html>


More information about the NumPy-Discussion mailing list