[Numpy-discussion] integer division rule?

Alan G Isaac aisaac at american.edu
Sat Mar 13 15:32:32 EST 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