Evaluate $\lim_{x\to 0}\dfrac{\sin[\cos x]}{1+\cos x}$ where $[.]$ denotes the floor function.
Attempt:
As $x\to 0$, $\cos x \to 1$ and therefore $[\cos x]\to 1$ $\implies \lim_{x\to 0}\dfrac{\sin[\cos x]}{1+\cos x} = \dfrac{\sin 1}{2}$
However, the answer is $0$. What is the concept mistake in my solution?
When $x\ne0$ but $|x|<\pi/2$, then $0<\cos x<1$ so that $[\cos x]=0$ and $\sin[\cos x]=0$. Therefore $\lim_{x\to0}\sin[\cos x]=0$ etc.