For example when I do this:
In : b = 0.05 + 0j
In : b
Out: (0.05+0j)
In : type(b)
Out: complex
Okay as expected. Now if I do this inside an numpy-array:
In : a = numpy.array([0,0,0], dtype = complex)
In : a[1] = 0.05
In : a[1]
Out: (0.050000000000000002775557561563+0.j)
In : type(a[1])
Out: numpy.complex128
I obviously do not want that precision loss, what can I do to prevent this behaviour? Or is there nothing I can do when I want to stay with numpy?