[Numpy-discussion] numpy.floor() is supposed to return an int, but returns a float

Webb Sprague webb.sprague at gmail.com
Mon Apr 10 07:19:22 EDT 2006


> >     "y = floor(x) elementwise largest integer <= x; note that the result
> > is a floating point value"

I prefer this, if it makes any difference. The others are more
succint, but less likely to help others in my situation.

> I too once found the C definition of the floor function annoying, but I got
> used to it. Sorta like getting used to a broken leg.

Annoying yes, crippling no.  I guess I should have grown up on a real
programming language :)




More information about the NumPy-Discussion mailing list