Why does relative error give number of correct digits?

3.5k Views Asked by At

I learnt that if the relative error is 5*$10^{-s}$ then the number of correct digits the result has $s$. Why is this so? Can you illustrate with an example and/or a proof?

Another way to put it appears to be that $n$ correct digits means a relative error with order of $10^{-n}$. Is it a definition?