I'm doing a course in complex analysis - and in a question I come to a term that is $[\exp(2\pi i)]^f $ where $f$ is some fraction. I naively proceed with $[\exp(2\pi i)]^f=1^f=1$ which leads to an incorrect answer, where instead I should keep $[\exp(2\pi i)]^f = \exp(2 f \pi i)\ne 1$. This has confused me somewhat (and possibly embarrassingly) - is it incorrect to evaluate the exponential first?
For example, is it $[\exp(2\pi i)]^\frac{1}{4}=\exp(\frac{\pi}{2} i) = i$ or, is it $[\exp(2\pi i)]^\frac{1}{4}=1^\frac{1}{4} = 1$?