I\'m writing Python 2.6 code that interfaces with NI TestStand 4.2 via COM in Windows. I want to make a \"NAN\" value for a variable, but if I pass it float(\'nan\')
float(\'nan\')
John Cook had a nice post on this that might be helpful:
Update: won't this work?
In [144]: import scipy In [145]: scipy.nan Out[145]: 1.#QNAN In [146]: scipy.inf Out[146]: 1.#INF In [147]: scipy.inf * 0 Out[147]: -1.#IND