$$\lim_{x \to 0} \frac{x}{p} \left\lfloor \frac{q}{x} \right\rfloor =\;\;\; ?$$
My attempt:
$\frac{q}{x}-1 < \lfloor \frac{q}{x} \rfloor \le \frac {q}{x} $ . Then I consider four cases. In case 1 I took x and p both positive and then I multiplied above by $\frac{x}{p} $ and took limit and applied squeeze theorem. In other cases I did the same. My answer is $ \frac{q}{p} $.
Is the solution correct?
$$\frac{x}{p}\left\lfloor\frac{q}{x}\right\rfloor=\frac{x}{p}\frac{q}{x}-\frac{x}{p}\left\{\frac{q}{x}\right\}=\frac qp-\frac{x}{p}\left\{\frac{q}{x}\right\}.$$
The second term tends to $0$ because
$$0\le\frac{x}{p}\left\{\dfrac{q}{x}\right\}<\frac{x}{p}.$$