[Numpy-discussion] simpliest way to check: array x is float, not integer

dmitrey openopt at ukr.net
Sun Apr 29 06:51:17 EDT 2007


hi all,
please inform me what is the simplest way to check, does the vector x 
that came to my func is float or integer. I.e. someone can pass to my 
func for example x0 = numpy.array([1, 0, 0]) and it can yield wrong 
unexpected results vs numpy.array([1.0, 0, 0]) .
Thx, D.





More information about the NumPy-Discussion mailing list