Why are you passing PI to the functions and then setting its value? Why is the value different in both functions? Why not define a global const for PI once? Anyhow, your values for PI are incorrect. ...