Let $x$ be the number in question. We can set up the equation $\frac{x}{2}=x-2$.
Multiplying both sides by 2, we get $x=2(x-2)$.
Expanding, we get $x=2x-4$.
Subtracting $2x$ from both sides, we get $-x=-4$.
Multiplying both sides by $-1$, we get $x=\boxed{4}$.
The answer is: 4
Below is a math problem. Provide a detailed, step-by-step solution.

### Problem:
Which number, when divided by 2, is equal to the result obtained by subtracting 2 from it?

### Answer:
