fix challenge solver output formatting to two decimals
This commit is contained in:
@@ -18,7 +18,7 @@ def solve_prompt(prompt: str) -> str:
|
||||
|
||||
left = int(match.group(1))
|
||||
right = int(match.group(2))
|
||||
return str(math.sqrt(left) * right)
|
||||
return f"{math.sqrt(left) * right:.2f}"
|
||||
|
||||
|
||||
def main() -> None:
|
||||
|
||||
Reference in New Issue
Block a user