[Numpy-discussion] Re: range/arange

Pierre GM pgmdevlist at mailcan.com
Thu Apr 13 11:29:09 CDT 2006


> Python's rule for integer division is to round towards negative infinity.
> C's rule (if it has one; I think it may be platform dependent) is to round
> towards 0. 

Ah OK. That makes sense, and it's something I'll have to keep in mind later 
on. 
Thanks y'all for your answers, I feel quite edified now :)




More information about the Numpy-discussion mailing list