Re: [Numpy-discussion] Float128 integer comparison

2011-11-01 Thread Matthew Brett
Hi, On Sat, Oct 15, 2011 at 1:34 PM, Derek Homeier wrote: > On 15.10.2011, at 9:42PM, Aronne Merrelli wrote: > >> >> On Sat, Oct 15, 2011 at 1:12 PM, Matthew Brett >> wrote: >> Hi, >> >> Continuing the exploration of float128 - can anyone explain this behavior? >> >> >>> np.float64(922337203685

Re: [Numpy-discussion] Float128 integer comparison

2011-10-15 Thread Derek Homeier
On 15.10.2011, at 9:42PM, Aronne Merrelli wrote: > > On Sat, Oct 15, 2011 at 1:12 PM, Matthew Brett > wrote: > Hi, > > Continuing the exploration of float128 - can anyone explain this behavior? > > >>> np.float64(9223372036854775808.0) == 9223372036854775808L > True > >>> np.float128(92233720

Re: [Numpy-discussion] Float128 integer comparison

2011-10-15 Thread Aronne Merrelli
On Sat, Oct 15, 2011 at 1:12 PM, Matthew Brett wrote: > Hi, > > Continuing the exploration of float128 - can anyone explain this behavior? > > >>> np.float64(9223372036854775808.0) == 9223372036854775808L > True > >>> np.float128(9223372036854775808.0) == 9223372036854775808L > False > >>> int(np.

[Numpy-discussion] Float128 integer comparison

2011-10-15 Thread Matthew Brett
Hi, Continuing the exploration of float128 - can anyone explain this behavior? >>> np.float64(9223372036854775808.0) == 9223372036854775808L True >>> np.float128(9223372036854775808.0) == 9223372036854775808L False >>> int(np.float128(9223372036854775808.0)) == 9223372036854775808L True >>> np.ro