[Numpy-discussion] bug in ceil()

2010-10-06 Thread Christian Fischer
Hi All, I use numpy 1.4.1 on Debian squeeze amd64. I noticed that ceil() is not working properly. If the input to ceil() is a float I expect a float to be returned but for inputs in (-1.0, 0.0) the result is of type integer. In [65]: np.__version__ Out[65]: '1.4.1' In [66]: np.ceil(-1.1)

Re: [Numpy-discussion] bug in ceil()

2010-10-06 Thread Michael Droettboom
Are you sure? In [4]: type(np.ceil(-0.0)) Out[4]: type 'numpy.float64' Mike On 10/06/2010 01:55 PM, Christian Fischer wrote: Hi All, I use numpy 1.4.1 on Debian squeeze amd64. I noticed that ceil() is not working properly. If the input to ceil() is a float I expect a float to be returned

Re: [Numpy-discussion] bug in ceil()

2010-10-06 Thread Charles R Harris
On Wed, Oct 6, 2010 at 11:55 AM, Christian Fischer cfisc...@itm.uni-stuttgart.de wrote: Hi All, I use numpy 1.4.1 on Debian squeeze amd64. I noticed that ceil() is not working properly. If the input to ceil() is a float I expect a float to be returned but for inputs in (-1.0, 0.0) the

Re: [Numpy-discussion] bug in ceil()

2010-10-06 Thread Nils Wagner
On Wed, 06 Oct 2010 19:55:00 +0200 Christian Fischer cfisc...@itm.uni-stuttgart.de wrote: Hi All, I use numpy 1.4.1 on Debian squeeze amd64. I noticed that ceil() is not working properly. If the input to ceil() is a float I expect a float to be returned but for inputs in (-1.0, 0.0)