Kurz mal hier getestet, da ich kein numpy installiert habe: https://www.pythonanywhere.com/try-ipython/ Python 2.7.6 (default, Mar 22 2014, 22:59:56) Type "copyright", "credits" or "license" for more information. IPython 2.1.0 -- An enhanced Interactive Python. ? -> Introduction and overview of IPython's features. %quickref -> Quick reference. help -> Python's own help system. object? -> Details about 'object', use 'object??' for extra details. In [1]: import numpy as np In [2]: np.float64(56.9) Out[2]: 56.899999999999999 In [3]: np.float64(56.9) == float('nan') Out[3]: False In [4]: np.float64(-57.9) == float('nan') Out[4]: False In [5]: float(-57.9) == float('nan') Out[5]: False In [6]: float(56.9) == float('nan') Out[6]: False Kann leider dein Problem nicht replizieren. Schon ebenfalls mal auf einem anderen Rechner versucht? Dustin On Thu, Oct 30, 2014 at 2:19 PM, Bernd Nawothnig < Bernd.Nawothnig@t-online.de> wrote:
Das ist doch sicherlich ein Bug, oder:
#v+ Python 3.4.0 (default, Apr 11 2014, 13:05:11) [GCC 4.8.2] on linux Type "help", "copyright", "credits" or "license" for more information.
import numpy as np np.float64(56.9) == float('nan') True np.float64(-57.9) == float('nan') True float(-57.9) == float('nan') False float(56.9) == float('nan') False
#v-
Bernd
-- no time toulouse _______________________________________________ python-de maillist - python-de@python.org https://mail.python.org/mailman/listinfo/python-de