From: Sasha <nd...@ma...> - 2006-05-15 13:22:06
|
BTW, >>> from numpy import * >>> nan =3D=3D nan False >>> from decimal import * >>> Decimal('NaN') =3D=3D Decimal('NaN') False and finally (may not work on all platforms): >>> float('NaN') =3D=3D float('NaN') False On 5/15/06, Sasha <nd...@ma...> wrote: > It's a feature IEEE standard requires that NaNs are not equal to any > floating point numbers including other NaNs. > > On 5/15/06, Simon Burton <si...@ar...> wrote: > > > > >>> numpy.float64(numpy.NaN)=3D=3Dnumpy.NaN > > False > > > > Hmm. Bug or feature ? > > > > >>> numpy.__version__ > > 0.9.7.2502 > > > > Simon. > > > > -- > > Simon Burton, B.Sc. > > Licensed PO Box 8066 > > ANU Canberra 2601 > > Australia > > Ph. 61 02 6249 6940 > > http://arrowtheory.com > > > > > > ------------------------------------------------------- > > Using Tomcat but need to do more? Need to support web services, securit= y? > > Get stuff done quickly with pre-integrated technology to make your job = easier > > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geron= imo > > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat= =3D121642 > > _______________________________________________ > > Numpy-discussion mailing list > > Num...@li... > > https://lists.sourceforge.net/lists/listinfo/numpy-discussion > > > |