f(x)=x-[x] where [] means integer part. Let x be an integer:
For 0<h<1, f(x+h)=x+h-[x+h]=x+h-x=h; f(x-h)=x-h-[x-h]=x-h-(x-1)=x-h-x+1=1-h.
Therefore f(x+h)≠f(x-h). As h→0 the right limit and left limit are not the same therefore the limit of f(x) when x is an integer cannot be defined, making the function f discontinuous at integral points.
EXAMPLE
Let x=2 and h=0.1. f(2.1)=2.1-2=0.1; f(1.9)=1.9-1=0.9. 0.1≠0.9. So discontinuity.
Let x=2 and h=0.9. f(2.9)=2.9-2=0.9; f(1.1)=1.1-1=0.1. 0.9≠0.1. So discontinuity.