Ad
  • Custom User Avatar

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

  • Custom User Avatar

    There are no floating-point issues in JS. Your solution is incorrect. Here is an example: s = "(10/174/620/669)". Your solution returns -5.614415729596025 but the expected result is 1.3855842704039755e-7.

    I added small random tests. It should be easier to debug solutions now.

  • Custom User Avatar

    I think there's an issue with Floating point numbers in the JS version, This kata is very old so that might be the issue. But as you can see, result is basically the same and still returns a failed test :/
    expected 136927709554.08983 to be close to 136927709554.0909 +/- le-9