Calculating PI value is one of the complex problem and wikipedia talks about the approximations done for it and says it\'s difficult to calculate PI accurately.
How
anyway you have not a unlimited accuracy so C define a constant in this way:
#define PI 3.14159265358979323846
import math.h to use this