Considering that we don't know any of the digits of some number defined as the limit up to infinity of a sum, I want to know how many terms do I have to sum to get the correct decimal representation, for example, up to the nth digit.
For example, consider this sum:
$$\displaystyle \frac \pi 4 = 1 - \frac 1 3 + \frac 1 5 - \frac 1 7 + \frac 1 9 - \cdots$$
How do I know when I'll get the correct decimal representation for $\frac{\pi}{4}$ up to the 10th digit, for example? Basically I wanna know if there is a general method for this type of calculation. I apreciate any kind of help.
Notice the terms in this series decrease in absolute value and alternate in sign. This means that the partial sums of the series approach the actual sum in a zigzagging way. The first partial sum is $1$, wich is bigger than the actual sum, $1-1/2$ goes down and is smaller then, then $1-1/2+1/3$ increases, but doesn't go above $1$, and so on.
This means that the actual sum of the series is always between any two consecutive partial sums.
If the difference of two consecutive partial sums is smaller than $10^{-k}$ then you have $k-1$ digits.
The difference of two consecutive partial sums is the term of the series. In your case $1/n$. So, if $1/n<10^{k}$ you have $k-1$ digits.