October 2003
Intermediate to advanced
736 pages
15h 25m
English
Imagine that the value of pi in System.Math.PI, at only 20 digits, just isn't accurate enough for you. In that case, you may find yourself writing an application like the one in Figure 14.1 to calculate pi to an arbitrary number of digits.

This program takes as input the number of digits of pi to calculate and, when the Calc button is pressed, shows the progress as the calculation happens.
Although most applications don't need to calculate the digits of pi, many kinds of applications need to perform long-running operations, whether it's printing, making a Web service ...