We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3bd0c85 + abb5da8 commit 7819965Copy full SHA for 7819965
main.py
@@ -18,7 +18,7 @@ def format_time(self, time_hundredths):
18
total_seconds = time_hundredths / 100
19
minutes, seconds = divmod(total_seconds,60)
20
formatted_seconds = f"{int(seconds)}"
21
- fractional_part =f"{int((total_seconds % 1) * 100):02}"
+ fractional_part =f"{round((total_seconds % 1) * 100):02}"
22
formatted_time = f"{formatted_seconds}.{fractional_part}"
23
if minutes >= 1:
24
formatted_time = f"{int(minutes)}:{formatted_time}"
0 commit comments