We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 35a89e1 commit 2bf88ecCopy full SHA for 2bf88ec
maths/decimal_to_fraction.py
@@ -14,7 +14,7 @@ def decimal_to_fraction(decimal: float | str) -> tuple[int, int]:
14
>>> decimal_to_fraction("6.25")
15
(25, 4)
16
>>> decimal_to_fraction("78td")
17
-
+
18
Traceback (most recent call last):
19
ValueError: Please enter a valid number
20
>>> decimal_to_fraction(0)
0 commit comments