Hi All,

having some trouble with calculating pi from the below.

Instaed of reading 3.14xxx it's giving me 3.28xxx instead. Not sure where i'm going wrong on the maths.

double pi = 4.0*(1.0-(1.0/3.0)+(1.0/5.0)-(1.0/7.0)+(1.0/9.0)-(1.0/11.0)+(1.0/13.0));

Thanks for any and all advice.

CC.