Ad
  • Default User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    I'm going to repeat myself, but those questions wouldn't have arised if you

    • either used a relative error check instead of an equality check or
    • truncated the solution in the tests yourself.

    (By the way truncating a floating point number to a certain number of decimal places doesn't make sense for large floating point numbers, e.g. 12345678912345e-5, something you should keep in mind.)

  • Default User Avatar

    The description says:

    going(n) will return "result" truncated to 6 decimal places.

    It's said truncated, not rounded...