>would you specify double by...
wallysworld pi_value is already a pointer to a double, so you just need to be sure it does double arithmetic on the right hand side. You can do that by making the constants double:
Code:
             *pi_value += (4.0/((n*2.0)-1.0));