It is impossible to calculate the exact value of pi.