Ad
  • Custom User Avatar

    Yes, obviously. What I meant is that it's not clear to me what value exactly you use in your code when you mention "actual value of pi'.

    Additional thing to notice: I changed tets a bit, added sample tests, and changed some other things. You might want to back up your current solution, refresh the trainer, click "reset", and see what kind of errors you are getting now. Also please read the description again, because it changed too. If you still cant get your code to work, just show what you try (remember about code formatting and spoiler flag).

  • Custom User Avatar

    3.14 is not precise enough and will cause inaccurracies.
    I am not sure what you call 'actual value of pi' though.

  • Custom User Avatar

    What else the value of pi be than, uh, pi?
    With a precision sufficient to fulfill requirements regarding accuracy of returned result.