Re: [Numpy-discussion] Behavior of rint?

2018-01-19 Thread Charles R Harris
On Fri, Jan 19, 2018 at 8:45 AM, Charles R Harris wrote: > > > On Fri, Jan 19, 2018 at 8:27 AM, Matthew Brett > wrote: > >> Hi, >> >> On Fri, Jan 19, 2018 at 3:24 PM, Charles R Harris >> wrote: >> > >> > >> > On

Re: [Numpy-discussion] Behavior of rint?

2018-01-19 Thread Charles R Harris
On Fri, Jan 19, 2018 at 8:27 AM, Matthew Brett wrote: > Hi, > > On Fri, Jan 19, 2018 at 3:24 PM, Charles R Harris > wrote: > > > > > > On Fri, Jan 19, 2018 at 7:48 AM, Matthew Brett > > wrote: > >> > >> Hi Chuck, > >>

Re: [Numpy-discussion] Behavior of rint?

2018-01-19 Thread Charles R Harris
On Fri, Jan 19, 2018 at 8:24 AM, Charles R Harris wrote: > > > On Fri, Jan 19, 2018 at 7:48 AM, Matthew Brett > wrote: > >> Hi Chuck, >> >> Thanks for the replies, they are very helpful. >> >> On Fri, Jan 19, 2018 at 1:51 PM, Charles R Harris

Re: [Numpy-discussion] Behavior of rint?

2018-01-19 Thread Matthew Brett
Hi, On Fri, Jan 19, 2018 at 3:24 PM, Charles R Harris wrote: > > > On Fri, Jan 19, 2018 at 7:48 AM, Matthew Brett > wrote: >> >> Hi Chuck, >> >> Thanks for the replies, they are very helpful. >> >> On Fri, Jan 19, 2018 at 1:51 PM, Charles R

Re: [Numpy-discussion] Behavior of rint?

2018-01-19 Thread Charles R Harris
On Fri, Jan 19, 2018 at 7:48 AM, Matthew Brett wrote: > Hi Chuck, > > Thanks for the replies, they are very helpful. > > On Fri, Jan 19, 2018 at 1:51 PM, Charles R Harris > wrote: > > > > > > On Fri, Jan 19, 2018 at 6:41 AM, Charles R Harris >

Re: [Numpy-discussion] Behavior of rint?

2018-01-19 Thread Robert Kern
On Fri, Jan 19, 2018 at 11:56 PM, Mads Ipsen wrote: > > I am confused . Shouldn't rint round to nearest integer. http://en.cppreference.com/w/cpp/numeric/math/rint It does. Matthew was asking specifically about its behavior when it is rounding numbers ending in .5, not the

Re: [Numpy-discussion] Behavior of rint?

2018-01-19 Thread Mads Ipsen
I am confused . Shouldn't rint round to nearest integer. http://en.cppreference.com/w/cpp/numeric/math/rint Regards Mads On Jan 19, 2018 15:50, "Matthew Brett" wrote: > Hi Chuck, > > Thanks for the replies, they are very helpful. > > On Fri, Jan 19, 2018 at 1:51 PM,

Re: [Numpy-discussion] Behavior of rint?

2018-01-19 Thread Matthew Brett
Hi Chuck, Thanks for the replies, they are very helpful. On Fri, Jan 19, 2018 at 1:51 PM, Charles R Harris wrote: > > > On Fri, Jan 19, 2018 at 6:41 AM, Charles R Harris > wrote: >> >> >> >> On Fri, Jan 19, 2018 at 3:30 AM, Matthew Brett

Re: [Numpy-discussion] Behavior of rint?

2018-01-19 Thread Charles R Harris
On Fri, Jan 19, 2018 at 6:41 AM, Charles R Harris wrote: > > > On Fri, Jan 19, 2018 at 3:30 AM, Matthew Brett > wrote: > >> Hi, >> >> Sorry for my confusion, but I noticed (as a result of the discussion >> here [1]) that np.rint and the

Re: [Numpy-discussion] Behavior of rint?

2018-01-19 Thread Charles R Harris
On Fri, Jan 19, 2018 at 3:30 AM, Matthew Brett wrote: > Hi, > > Sorry for my confusion, but I noticed (as a result of the discussion > here [1]) that np.rint and the fallback C function [2] seem to round > to even. But - my impression was that C rint, by default, rounds