If a real valued function $f:(0,\infty)\to A$ defined by $f(x)=\frac{[x]}{|x|}$ is a surjection, then $A=$
(Here $[x]$ is the greatest integer function)
- A
$\{0\}\cup\left(\frac{1}{2},1\right]$
- B
$(0,1]$
- C
$\left(\frac{1}{2},1\right]$
- D
$\left(0,\frac{1}{2}\right]$