I'm calculating $\mathrm{e}$ using a computer like this: $$ \mathrm{e} \approx \sum\limits_{i=0}^n {1\over i!} $$ I'm storing it as a rational number.
I was wondering, if I write down my rational number as a decimal number, could I determine, how many digits after the decimal point are correct for a given value of $n$?
Using the Taylor remainder formula you get that, for some $\xi\in (0,1)$ $$ 0<\mathrm{e}-\sum_{i=0}^n\frac{1}{n!}=\frac{\mathrm{e}^\xi}{(n+1)!}<\frac{3}{(n+1)!}. $$ Thus the error is less than $\frac{3}{(n+1)!}$.