[Numpy-discussion] integer division rule?

Alan G Isaac aisaac@american....
Sat Mar 13 14:32:32 CST 2010


Francesc Altet once provided an example that for integer
division, numpy uses the C99 rule: round towards 0.
This is different than Python's rule for integer division:
round towards negative infinity.

But I cannot reproduce his example. (NumPy 1.3.)
Did this behavior change at some point?

Thanks,
Alan Isaac


More information about the NumPy-Discussion mailing list