Ad
  • Default User Avatar

    Return the result rounded to two decimals.

    It is the rounded result that is compared to the expected solution with fuzzy equality. You have to round the number yourself. And ± 1e-9 is more precise than ± 1e-2, not less.

    (Asking for rounded results is bad practice, but it's too late to change the kata now).

  • Custom User Avatar

    Why does it say (+/- 1e-9) when it only allows for precicely rounded (+/- 1e-2) ? (C++)