Ad
  • Default User Avatar

    Nothing wrong with the tests : your function is not perfectly exact so you can fail some random tests due to their inputs. (Your two divisions by 100 bring some float imprecision. You could also have noticed that all numbers are integers so don't put floats in there...)
    Please look at some of the top solutions and you will see. Cheers.

  • Custom User Avatar

    you're welcome!