$$e=\lim_{n\to\infty}\left(1+\frac 1n\right)^n$$
This is based on Bernoulli's compound interest definition.
But let's say we want to find $e^x$ now.
$$e^x=\lim_{n\to\infty}\left(1+\frac 1n\right)^{nx}$$
Let $m = nx$ so $n = m/x$. As $n$ goes to infinity, so does $m$, so:
$$e^x=\lim_{m\to\infty}\left(1+\frac xm\right)^{m}$$
This now looks like the definition you usually see but apparently this is an invalid proof of the fact because $n$ is supposed to be an integer(??) and $m/x$ may not be.
How are you supposed to get from one to the other then?