[Numpy-discussion] annoying numpy string to float conversion behaviour
focke at slac.stanford.edu
Mon Jun 25 15:26:31 EDT 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