A much more general result is available in Donald Knuth's Concrete Mathematics and it is attributed to "R. J. McEliece when he was an undergrad". He proved it for ceiling functions, but I included a proof for the floor function in a book that I am writing. Here is a variation of what I wrote in my book:
Let $f$ be a continuous and monotonically increasing function, defined on an interval $I$ in $\mathbb{R},$ with the property that $$f(x)\in\mathbb{Z}\implies x\in\mathbb{Z}.$$ Then, for all $x\in I,$ $$ \lfloor f(x) \rfloor =\left\lfloor f(\lfloor x\rfloor) \right\rfloor \text{ and } \lceil f(x) \rceil =\left\lceil f(\lceil x\rceil) \right\rceil .$$ Note that each identity holds only if the expression on either side of it is defined, as $x$ being in $I$ does not necessarily mean that $\lfloor x\rfloor$ and $\lceil x\rceil$ are in $I.$
I'll leave it to you to check out Knuth's ceiling proof and adapt it to the floor scenario. Do you see why this applies to your problem? Roots, logs and linear functions with positive slope all work here (linear in particular).