What is the range of $$f(x)=\left[\frac{[x]}{x}\right]?$$
My textbook says the answer is the two-point set $\{0,1\}$, which I think means that the range is either $0$ or $1$. When I graph the function on my TI-nspire CX, I get a graph that has points on it whose $y$ values are indeed $0$ and $1$, but the graph also has points whose $y$ values are neither $0$ nor $1$. An example of this is the point $(-0.5,2)$. I don't understand this