This question arose while reading C.W. Edwards, Jr.'s Advanced Calculus of Several Variables, Section IV-2, proof of Theorem 2.2. I am fairly sure the functions describe below are uniformly continuous, but that is contrary to my long-held, intuitive concept of continuity.
This is the definition of uniform continuity I am following: for some domain $\mathscr{D}\subset\mathbb{R}$ the function $f:\mathscr{D}\to\mathbb{R}$ is uniformly continuous on $\mathscr{D}$ if and only if, given $\epsilon>0$ there exists $\delta>0$ such that $x,y\in\mathscr{D}$, $\left|x-y\right|<\delta\implies\left|f\left[x\right]-f\left[y\right]\right|<\epsilon$.
Now, define $\Delta\mathbb{N}=\{x\in\mathbb{R}\vert\exists n\in\mathbb{N}\wedge\left|x-n\right|<\Delta\}$, where $0<\Delta\ll1/2$. That is, those points of $\mathbb{R}$ lying in some open $\Delta$-neighborhood of some integer $n$.
I believe $f[x]=\left\lfloor x\right\rfloor$ is uniformly continuous on the closed set $\mathcal{D}_{\Delta}=\{x\vert x\in\mathbb{R}-\Delta\mathbb{N}\}$. Because given $\epsilon>0$ there exists $\delta>0$ such that $\left|x-y\right|<\delta\implies\left\lfloor x\right\rfloor =\left\lfloor y\right\rfloor$ for some $x,y\in\mathcal{D}_{\Delta}$. In fact, $\left|x-y\right|<\delta\le\Delta\implies\left\lfloor x\right\rfloor =\left\lfloor y\right\rfloor$ .
I also believe that $f[x]=\left\lfloor x\right\rfloor$ is uniformly continuous on the open set $\mathcal{D}=\{x\vert x\in\mathbb{R}-\mathbb{N}\}$. This is true because every point $x\in\mathcal{D}$ lies in some open interval $\left(x-\delta,x-\delta\right)\subset\left(n-1,n\right)$ where $n-1<x<n$ and $\delta$ is sufficiently small. So for $x\in\mathcal{D}$ there exists $y\in\left(x-\delta,x-\delta\right)$ such that $\left\lfloor x\right\rfloor =\left\lfloor y\right\rfloor$.
Furthermore; I believe the identity function $\mathcal{I}[x]=x$ is uniformly continuous on both $\mathcal{D}_{\Delta}$ and $\mathcal{D}$. The same approach as used above applies to this case.
Am I correct in these statements?