Ad
  • Custom User Avatar

    You should clarify that price and payment are in the same currency (I assumed price was always in US$)
    I had lots of troubles to get the right approximation. In the end I got the tests to pass by truncating instead of rounding cents. It doesn't sound reasonable to me. Maybe there is some other error in my code and this strange approximation compensates for it...don't know