[Numpy-discussion] annoying numpy string to float conversion behaviour

Warren Focke focke@slac.stanford....
Mon Jun 25 14:26:31 CDT 2007

On Mon, 25 Jun 2007, Torgil Svensson wrote:

> handled with sub-classing. At a minimum "float(str(nan))==nan" should
> evaluate as True.

False.  No NaN should ever compare equal to anything, even itself.  But if 
the system is 754-compliant, it won't.

"isnan(float(str(nan))) == True" would be nice, though.


More information about the Numpy-discussion mailing list