Studying my Numerical Analysis textbook I came to the following definition for significant figures using the relative error:
The number $x^\star$ is said to approximate $x$ to $n$ significant figures if $n$ is the largest nonnegative integer such that $$\left\lvert \cfrac{x-x^\star}{x}\right\rvert \leq 5 \times 10^{-n}.$$
Now, I understand how to apply the definition. Say, if $x=0.501392$ and $x^\star = 0.501377$, then $$ \begin{align*} \left\lvert \cfrac{x-x^\star}{x}\right\rvert &= 0.0000299167 \\ &\leq 0.00005 \\ &= 5\times 10^{-5}, \end{align*} $$
hence $x^\star$ approximates $x$ to five significant figures. What I fail to see is which are those figures, because looking at the numbers I see they coincide in four digits ($0.5013$), so what is this definition really telling me?
One last example: the book uses $y=0.00016$ as the exact number and $y^\star=0.0002$ as the approximation, and calculates the relative error: $$ \begin{align*} \left\lvert \cfrac{y-y^\star}{y}\right\rvert &= 0.25 \\ &\leq 0.5 \\ &= 5\times 10^{-1} \end{align*} $$
This means the approximation is accurate to one significant digit, but looking at $y$ and $y^\star$ they have no single number in common, confusing me even more.
Also, I don't get what role the $5$ plays in the definition. Why that number and not other?