I'm studying Calculus. My teacher gave us a couple of exercises: first, prove $$\lim_{x \rightarrow a}\,[|x|]$$ (floor function) exists for values of $a$, and second, prove $$\lim_{x \rightarrow a}\,(x-[|x|])$$ (fractional part) exists for values of $a$. I know the definition for limits, I mean, the right and left sides must be equal. But, how do you find the interval for each one? How do you prove each limit for values of $a$? I think that it doesn't exist at all.
I assume that by $[|x|]$ you mean the floor function, more commonly denoted by $\lfloor x\rfloor$.
Both floor and ceiling functions are continuous on any interval of the form $(n,n+1)$ for $n\in\mathbb{Z}$. In fact they are constant there. And so your $f$ is continuous on them as well. Meaning the limit exists for any $a\not\in\mathbb{Z}$.
Now for $a\in\mathbb{Z}$ note that if $\epsilon>0$ is sufficiently small (i.e. $\epsilon<1$) then $f(a-\epsilon)=1-\epsilon$ while $f(a+\epsilon)=\epsilon$. And so $\lim_{x\to a^-}f(x)=1$ while $\lim_{x\to a^+}f(x)=0$. Is it correct?, how do you prove the other case?