I saw that when the scores are 4091 and 4345, the function was returning 4.91 and 4.34. That means that in the scores list the 4.34 is better time (smaller) than the 4.91, because the function was removing the 0.
Need to fix this bug and very important to add unit tests to ensure it works properly.
I saw that when the scores are 4091 and 4345, the function was returning 4.91 and 4.34. That means that in the scores list the 4.34 is better time (smaller) than the 4.91, because the function was removing the 0.
Need to fix this bug and very important to add unit tests to ensure it works properly.