Ad
  • Default User Avatar

    I was having the same issue and it was driving me crazy. Using round or int, or even boolean did not work. I wrote my code all from the start. It calculates the seconds to catch up from there, goes to h:m:s. And that worked. Otherwise, it was giving me either wrong rouding up or wrong rounding down errors. Try it.

  • Default User Avatar

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

  • Default User Avatar

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

  • Custom User Avatar

    If you are having some weird issues I suggest you calculate values using seconds as basis. I've had problems with rounding too and it worked for me

  • Default User Avatar

    if so many people have passed this kata, then please explain that this kata is about solving rounding errors and not about a Tortoise race.

  • Default User Avatar

    if it weren't for the rounding issue, this is a great kata, but I'm going to just have to "fail" it and move on, this is infuriating. i can't get it to work in any lang so far.

  • Custom User Avatar

    I'm having the same issue. I calculate a minutes that's 19.99999999 which rounds to 19 and is my only error. I'm not sure how to fix it. Anyone?!

  • Default User Avatar

    how do you solve the rounding errors?

  • Default User Avatar

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