I know that numbers with rational power can be converted to radicals and based on the degree of the radical we can say that whether they are real or complex.
But what about numbers like $\left ( -2 \right )^{\sqrt{2}}$ or $\left ( -2 \right )^{\pi}$ that have irrational powers , what can we say about them ?
I tried Google calculator and it gave me these but I don't know why :
$$\left ( -2 \right )^{\pi}=-7.9661783 - 3.7973987 i$$
$$\left ( -2 \right )^{\sqrt{2}}=-0.709608865 - 2.56893919 i$$
If $x$ is a negative real number, then $x^y$ can be evaluated as a real number in general only if $y$ is a rational number with an odd denominator.
I say "can be" because, as Ittay notes in his answer, $x^y$ is actually a multivalued function, in general. The 'principal' value for $(-1)^{1/3}$ is actually not real, but $(-1)^{1/3}$ can be evaluated as real because there is a real value in the set of values.
If $x$ is a negative real number, then the values of $\log x$ can be an of the values $\log(-x) + i(2k+1)\pi$ for some integer $\pi$. Then you get the possible values:
$$x^y = e^{y\log x} = e^{y\log(-x) + iy(2k+1)\pi} = (-x)^y \left(\cos y(2k+1)\pi + i\sin y(2k+1)\pi\right)$$
This is real if and only if $y(2k+1)\pi$ is an integer multiple of $\pi$. We can find such a $k$ if and only if $y$ is a rational number with an odd denominator.