You imply the property exp(x*y) = exp(x)^y , which surely is true for real numbers, would also apply for complex numbers; but that is in general not true!
Addressing your intuition that you wrongly expect temp1 and temp2 to be equal on the first example:
First, do you agree that 2*pi*i*2.2 is no integer multiple of 2*pi*i, and therefore exp(2*pi*i*2.2) cannot equal 1 ?
And do you agree that, on the other hand, exp(2*pi*i) = 1 and 1^2.2 remains still 1?