A function $f(x)$ is continuous at a point $a$ if $\lim_{x\to a}f(x)=f(a)$. Another characterization of continuity at $a$ (which is useful in your case) is that $\limsup_{x\to a}f(x)-\liminf_{s\to a}f(x)=0$. ( $\limsup$ of course is defined as $\limsup_{x\to a}f(x)=\lim_{\epsilon\to0}\ \sup\{f(x):\lvert x-a\rvert<\epsilon,x\neq a\}$