Given that Pi can be estimated using the function [...], write a function that calculates Pi to an accuracy of 5 decimal places.
...my first inclination was:
public double answer() { return 3.14159; }
Given that Pi can be estimated using the function [...], write a function that calculates Pi to an accuracy of 5 decimal places.
...my first inclination was:
It passes the stated requirements.